Datatable icon indicating copy to clipboard operation
Datatable copied to clipboard

Does plugin work with datatable extensions

Open redroses opened this issue 10 years ago • 1 comments

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).

redroses avatar Dec 27 '14 16:12 redroses

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());
            });
        }

thienhung1989 avatar Dec 27 '14 18:12 thienhung1989