Calling multiple fnDrawCallback for jEditable and Hidden Rows
Calling multiple fnDrawCallback for jEditable and Hidden Rows
Hi Allan (and everyone else involved!)
Thank you for such a great tool - it is much appreciated.
I have a small problem regarding applying jeditable & hidden rows at the same time with server-side based data.
Below is my script, and you can see that it requires me to call a function for the editables and a function for multiple rows (fnOpenClose) but I don't know how to call these functions within the same fnDrawCallback.
[code]
...
"fnDrawCallback": function() {
$('.yourClass').editable( 'includes/file.php', {
"callback": function( sValue, y ) {
var aPos = oTable.fnGetPosition( this );
oTable.fnUpdate( sValue, aPos[1], aPos[2] );
},
"submitdata": function ( value, settings ) {
return { "row_id": this.parentNode.getAttribute('id') };
},
indicator : 'Saving...',
tooltip : 'Click to edit...',
"height": "24px"
} );
},
"fnDrawCallback": fnOpenClose,
...
[/code]
I've tried multiple combinations, and I have scoured the forums - but to no avail. I'm new to datatables and javascript so any help would be amazing.
Thanks again,
Andrew
Thank you for such a great tool - it is much appreciated.
I have a small problem regarding applying jeditable & hidden rows at the same time with server-side based data.
Below is my script, and you can see that it requires me to call a function for the editables and a function for multiple rows (fnOpenClose) but I don't know how to call these functions within the same fnDrawCallback.
[code]
...
"fnDrawCallback": function() {
$('.yourClass').editable( 'includes/file.php', {
"callback": function( sValue, y ) {
var aPos = oTable.fnGetPosition( this );
oTable.fnUpdate( sValue, aPos[1], aPos[2] );
},
"submitdata": function ( value, settings ) {
return { "row_id": this.parentNode.getAttribute('id') };
},
indicator : 'Saving...',
tooltip : 'Click to edit...',
"height": "24px"
} );
},
"fnDrawCallback": fnOpenClose,
...
[/code]
I've tried multiple combinations, and I have scoured the forums - but to no avail. I'm new to datatables and javascript so any help would be amazing.
Thanks again,
Andrew
This discussion has been closed.