How to dynamically delete and recreate a column?

How to dynamically delete and recreate a column?

chaechaechaechae Posts: 1Questions: 1Answers: 0

As soon as you access a specific page, a data table is created.

When any button is clicked, I want to initialize the created column and recreate it as a user-defined column.

Are there any supported options?

Answers

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

    You can't recreate or add/remove columns after that initialisation, but you can change how they look using rowCallback - this is called on each draw, so if you have some conditional code there you can change the behaviour of how the column will look.

    colin

Sign In or Register to comment.