Datatable check/uncheck 'All'

Datatable check/uncheck 'All'

saudagarrizwansaudagarrizwan Posts: 8Questions: 1Answers: 0
edited February 2014 in DataTables 1.9
Hi Allan,

Am using datatables in one of my projects. Am doing select All/None with the following code
[code]
$('#check_all').click( function() {
$('input', oTable.fnGetNodes()).attr('checked', this.checked);
})
[/code]
Say if I have 10 rows. Initially if I select few rows (say 4 and 5) then unselect it and then click on check All. Those 2 rows(4 and 5) are not checked. But when checked in source (Inspect element/firebug) check box says as checked.

Your help is appreciated.

Thanks,
Rizwan
This discussion has been closed.