fnDrawCallback listener adding
fnDrawCallback listener adding
spiritastir
Posts: 3Questions: 0Answers: 0
How to add fnDrawCallback listener after table is initialized.
I mean I already have a table. How to add smth like
"fnDrawCallback": function() {
alert( 'DataTables has redrawn the table' );
}
Thanks.
I mean I already have a table. How to add smth like
"fnDrawCallback": function() {
alert( 'DataTables has redrawn the table' );
}
Thanks.
This discussion has been closed.
Replies
[code]
oTable.fnSettings().aoDrawCallback.push( {
"fn": function (oSettings) { .... },
"sName": "user"
} );
[/code]
Allan
I've got one more idea.
Where all table data is stored? Is it possible to destroy the table after the page is loaded and create new one using all the data from the first one?
I am working with one CMS and I can not change it's core files. So I want to take their table at user side and redraw it.
So is it possible to create a new table from the old one (which we have when the page is loaded)?
DataTables is a great tool! And I want to learn it deeper after I will finish this my project =)
http://datatables.net/forums/discussion/comment/6034#Comment_6034
How to create a new one after this using existing data?
Allan
I need to hide some rows and show them after button click. So there are two ways:
1. Simply hide rows ( is this possible with datable tools? ).
2. Use filtering to hide those rows ( is this possible to use two filters together - one filter that uses input field and another that temporary hides some rows? ).