vedmack / yadcf

Yet Another DataTables Column Filter (yadcf)
http://yadcf-showcase.appspot.com/
MIT License
732 stars 285 forks source link

Problem with ColReorder and exResetAllFilters function #650

Closed gmeriaux closed 2 years ago

gmeriaux commented 3 years ago

Hi, By using the plugin yadcf combine with colReorder, I find a bug with the function exResetAllFilters whose don't reset correctly all filters. I patched my file locally by adding the same code that in exFilterColumn with the support of column_position variable to replace column_number in 'aoPreSearchCols' and 'clearStateSave'

column_number = optionsObj.column_number; column_position = column_number; if (plugins[table_selector_jq_friendly] !== undefined && plugins[table_selector_jq_friendly] !== undefined && plugins[table_selector_jq_friendly].ColReorder !== undefined) { column_position = plugins[table_selector_jq_friendly].ColReorder[column_number]; }

vedmack commented 2 years ago

Hi

In case its still relevant, you will need to provide a jsfiddle (or similar) test page so I can see it in action...