hi Alag,
there isnt a specific multi row select delete option but you can achieve it very simply by applying the following steps
atleast that's what i did....
first get the table tools plugin which has row multi select option then use the fngetSelected() method to get all the rows which has been selected
since i am using server side scripting i send the id's of the rows which i have selected and delete them.
ps. refer to the following post to use fngetSelected() method
Just select the checked checkboxes as you would with any jQuery selector (or use DataTables' $ API method to have it work regardless of paging etc) and then delete the rows with an Ajax call and fnDeleteRow .
Replies
there isnt a specific multi row select delete option but you can achieve it very simply by applying the following steps
atleast that's what i did....
first get the table tools plugin which has row multi select option then use the fngetSelected() method to get all the rows which has been selected
since i am using server side scripting i send the id's of the rows which i have selected and delete them.
ps. refer to the following post to use fngetSelected() method
http://datatables.net/forums/discussion/6295/fndeleterow-error-k-is-undefined/p1
Arjun
Allan
I am using a checkbox for deleting selected rows..
So if u can suggest for the above would be great..
Thanks
Allan
i need not delete on click of checkbox.
user selects the checkbox of row 2,5,8 then he clicks on delete to delete the records..
Thanks in advance
i tried like what you said but i get
"oTable.fnGetNodes is not a function" error.. could you help me..
Thanks
following is how i have achieved my multi delete functionality
[code]
function fnGetSelected( oTableLocal )
{
var aReturn = new Array();
var aRet="";
var aTrs = oTableLocal.fnGetNodes();
for ( var i=0 ; i