My checkbox does not work when I have selected row table.
This is my row selection.
$('#mainTable tbody').on( 'click', 'tr', function () {
$(this).toggleClass('selected');
});
I have included handler for checkbox, but no luck.
"rowCallback": function(row, data, dataIndex){
var rowId = data[0];
if($.inArray(rowId, rows_selected) !== -1){
$(row).find('input[type="checkbox"]').prop('checked', true);
$(row).addClass('selected');
}
}
Aucun commentaire:
Enregistrer un commentaire