Datatable
Datatable copied to clipboard
Does plugin work with datatable extensions
When I try to use an extension, the extension works. However the basic datatable functionality quits working. For rowReorder, I did the following below. I can click/drag and reorder rows, However, I cannot click on the headers to sort anymore. I am using 1.9.4 version of datatables. I am using the extension versions at or before 9/23/2012 (the date of 1.9.4 datatables).
You try:
.on('click', 'tbody tr td:not(:nth-child(' + tTargets + 1 + '))
You can change event "click" example:
this.gridObject = $(this.target).dataTable(gridOption);
if ($.isFunction(this.options.rowClick)) {
var rowClickFn = this.options.rowClick;
$(this.target).on('click', 'tbody tr td:not(:nth-child(' + tTargets + 1 + '))', function() {
rowClickFn($(this).parent());
});
}