How to show/hide data table headings based on search builder search.

How to show/hide data table headings based on search builder search.

udaymagdumudaymagdum 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.

  1. 'xy' and 'yz' dynamic field associated with 'EFG' data from 'abc' column.
  2. '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

  • allanallan Posts: 63,512Questions: 1Answers: 10,472 Site admin

    You'd need to destroy and recreate the DataTable with the new configuration. Dynamic columns are possible with DataTables I'm afraid.

    Allan

Sign In or Register to comment.