How to set preSelect value dynamically
How to set preSelect value dynamically
![imic](https://secure.gravatar.com/avatar/0b02bdd57063bd5931c115a0aab50dd9/?default=https%3A%2F%2Fvanillicon.com%2F0b02bdd57063bd5931c115a0aab50dd9_200.png&rating=g&size=120)
in SearchPanes
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!
This discussion has been closed.
Replies
The example in the docs you linked to shows how to enable it through the Datatables options.
Kevin