Reputation: 56
rowReorder: {
dataSrc: 'tr'
},
I'm using the rowReorder for drag & drop, but I need to disable specific row from dragging and changing its order, How to do that?
Upvotes: 0
Views: 590
Reputation: 26
rowReorder: {
dataSrc: 'tr',
selector: 'td.reorder',
},
columnDefs: [
{
targets: 0,
className: 'reorder',
createdCell: function (td, cellData, rowData) {
var selector = $(td).parents('tr').find('.reorder');
selector.addClass('reorder-disabled');
selector.removeClass('reorder');
}
}
}
],
Upvotes: 1