How to set preSelect value dynamically

How to set preSelect value dynamically

imicimic Posts: 6Questions: 0Answers: 0

Hi.
I am trying to do similar activity as following but after DataTable is created: https://datatables.net/reference/option/columns.searchPanes.preSelect

This is my javascript code but I am not sure where and how to set preSelect values here:

  sp = new $.fn.dataTable.SearchPanes(table1, {
        cascadePanes: true,
        layout: 'columns-3',
        columns:[2,5,7],                
  });

Please show right direction!

Replies

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974

    The example in the docs you linked to shows how to enable it through the Datatables options.

    Kevin

This discussion has been closed.