Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding callback function on edit #32

Closed
GoogleCodeExporter opened this issue May 24, 2015 · 8 comments
Closed

Adding callback function on edit #32

GoogleCodeExporter opened this issue May 24, 2015 · 8 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. make editable a datatable
2. specify parameter "aoColumns"
3. use callback parameter in a column (like in jeditable page)

What is the expected output? What do you see instead?
The callback parameter should return value and settings vars, but it doesn´t 
works

What version of the product are you using? On what operating system?
The last one, recently download :). Windows Vista SO

Please provide any additional information below.

i don´t know if is an error or there is a reason to avoid the use of 
"callback" in a specify column.

Original issue reported on code.google.com by vvcor...@gmail.com on 9 Jun 2011 at 10:36

@GoogleCodeExporter
Copy link
Author

Sorry if it is not very clear...my english is a little poor...
In the previous message i was talking about an Update :)

Congratulations for your excellent job,
Victor

Original comment by vvcor...@gmail.com on 9 Jun 2011 at 10:40

@GoogleCodeExporter
Copy link
Author

Hi Victor,

Do you have some online example where I can see it, or could you attach some 
zip archive with example of HTML/JavaScript so I can try it here?

Thanks,
Jovan

Original comment by joc...@gmail.com on 11 Jun 2011 at 12:34

@GoogleCodeExporter
Copy link
Author

I have no online examples, but i can attach my datatable script :)
The funcionallity that i am looking for, is the same as "fnOnEdited" (do an 
action after an update) but only in a specific column. A callback option in de 
aoColumns i think would be enought (like in jeditable plugin)

Thank you for your time Jovan! I will refer your plugin in my proyect! ;)

Original comment by vvcor...@gmail.com on 11 Jun 2011 at 12:41

Attachments:

@GoogleCodeExporter
Copy link
Author

Hi,

I have made some changes - see on the 
http://jquery-datatables-editable.googlecode.com/svn/trunk/custom-editors.html 
is this what you need.

Regards,
Jovan

Original comment by joc...@gmail.com on 11 Jun 2011 at 5:54

  • Changed title: Adding callback function on edit
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

It's just what i need !! thank you very very much Jovan, i was worried about 
that problem! :D

Regards
Victor

Original comment by vvcor...@gmail.com on 11 Jun 2011 at 7:31

@GoogleCodeExporter
Copy link
Author

I'm closing this issue.

Thanks,
Jovan

Original comment by joc...@gmail.com on 11 Jun 2011 at 11:18

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

one question..."fnOnCellUpdated" doesn't take "this" value correctly. In 
fnUpdateURL works correctly, but in fnOnCellUpdated not, so you can`t take the 
cell element just updated :(

example: if you write "$(this).addclass("NewClass") --> gets an error :(

Original comment by vvcor...@gmail.com on 12 Jun 2011 at 10:48

@GoogleCodeExporter
Copy link
Author

Hi Jovan,

I'm doing the same thing Victor did and I do get a value but the rest of the 
variables are undefined.. Right now I just have an alert to show those values:

sUpdateURL:  function(value, id, columnName, columnPosition, columnId, rowId, 
settings)
{   
alert("UPDATE\nvalue:"+value+"\nid:"+id+"\ncolumnId:"+columnId+"\ncolumnPosition
:"+columnPosition+"\nrowId:"+rowId+"\ncolumnName:"+columnName);
                        return(value);                     }

}

Original comment by EnriqueI...@gmail.com on 25 Jun 2011 at 5:55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant