Deselect row on update
Deselect row on update
I am using 'multi' select in my table. When I edit a row's data using the editor I need the row to deselect after the successful update. I can't seem to get fnSelectNone to fire after the update. Any idea how I might accomplish this? Below is my non-working code.
[code]
editor.on('onSubmitSuccess', function () {
this.fnSelectNone();
} );
[/code]
[code]
editor.on('onSubmitSuccess', function () {
this.fnSelectNone();
} );
[/code]
This discussion has been closed.
Replies
So what you can do is this:
[code]
editor.on('onSubmitSuccess', function () {
TableTools.fnGetInstance( '{tableId}' ).fnSelectNone();
} );
[/code]
A bit ugly I know :-(. You might want to pick up the reference to TableTools just after you initialise DataTables:
[code]
var tt = TableTools.fnGetInstance( '{tableId}' );
[/code]
Allan