Columndefs based on if condition
Columndefs based on if condition
![abreracc27](https://secure.gravatar.com/avatar/a6488c8e748116eba7a6374dc85baed0/?default=https%3A%2F%2Fvanillicon.com%2Fa6488c8e748116eba7a6374dc85baed0_200.png&rating=g&size=120)
in DataTables
I'm trying to create something like this but I do not know how to do it. Basically, the column types and affected target columns will depend on URL parameter value.
Answers
Okay, I was able create dynamic columndefs by doing this
![](https://datatables.net/forums/uploads/editor/md/phxud4l1ct8i.png)