nikeshydav / jquery-datatables-editable

Automatically exported from code.google.com/p/jquery-datatables-editable
0 stars 0 forks source link

Adding callback function on edit #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
I'm closing this issue.

Thanks,
Jovan

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

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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