How to clone header below it without the sorting functionality to filter data
How to clone header below it without the sorting functionality to filter data
ys4503
Posts: 1Questions: 1Answers: 0
Here is an example
In this example, I clone the header below it to filter data but I would like to remove sorting from the filter row. Also, for some reason, the filter doesn't reset the table after deleting keywords.
I found this example. However, I couldn't make it work in my case since I'm adding new rows from js objects.
Any help is much appreciated.
Answers
It's because you're cloning the header after the table has been initialised. Try insert a new row into the header instead.
Colin
When cloning, use clone(false), which will disable sort functionality