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

ys4503ys4503 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

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    It's because you're cloning the header after the table has been initialised. Try insert a new row into the header instead.

    Colin

  • prabhanjantprabhanjant Posts: 1Questions: 0Answers: 0
    edited March 2022

    When cloning, use clone(false), which will disable sort functionality

Sign In or Register to comment.