aoSearchCols does not appear to respect aoColumnDefs when colum is hidden
aoSearchCols does not appear to respect aoColumnDefs when colum is hidden
tellison
Posts: 1Questions: 0Answers: 0
We use aoColumnDefs to define hidden columns primarily for IDs. We just wired in aoSearchCols to define default filter values and one thing we noticed is that Search Columns values do not appear to respect the hidden column. In our example we have
Id,
FirstName,
LastName,
Status
as our column definitions. I then added aoSearchCols array as [ null, {"sSearch" : "B"} ] thinking hidden columns would not be taken into account. The filter value showed up above LastName however the filtering took place on FirstName.
Is there something we need to do to get aoSearchCols to respect hidden columns?
Thanks!
Id,
FirstName,
LastName,
Status
as our column definitions. I then added aoSearchCols array as [ null, {"sSearch" : "B"} ] thinking hidden columns would not be taken into account. The filter value showed up above LastName however the filtering took place on FirstName.
Is there something we need to do to get aoSearchCols to respect hidden columns?
Thanks!
This discussion has been closed.