How to disable click selected child row in datatable ?
How to disable click selected child row in datatable ?
headshot9x
Posts: 59Questions: 16Answers: 1
I have use table with child-row. Normal, I selected main row, i use
$('#table tbody').on('click', 'tr', function () {
if ($(this).hasClass('selected')) {
$(this).removeClass('selected');
//do this
}
else {
table.$('tr.selected').removeClass('selected');
$(this).addClass('selected');
//do this
}
});
When use this, click any child-row, it effect. Now, i want to don't click to child-row, how i do it ?
Look at picture sample. thank you.
This discussion has been closed.