How to show/hide data table headings based on search builder search.
How to show/hide data table headings based on search builder search.
udaymagdum
Posts: 24Questions: 17Answers: 0
We have concept dynamic fields inside application. Currently dynamic field associated with column 'abc' present in
search builder data attribute sets list.
Want to show dynamic fields only when associated serachbuilder column 'abc' value selected.
For eg.
- 'xy' and 'yz' dynamic field associated with 'EFG' data from 'abc' column.
- 'ac' and 'de' dynamic field associated with 'GHI' data from 'abc' column.
So when user select 'EFG' data from search builder column 'abc' show dynamic fields 'xy' and 'yz' field data on table and table heading for columns 'XY' and 'YZ' likewise.
Answers
You'd need to destroy and recreate the DataTable with the new configuration. Dynamic columns are possible with DataTables I'm afraid.
Allan