Clear all filters problem (PRO)

Tags: #<Tag:0x00007efc62027460>

Hi,

I would like to create a button to clear all filters.
Clicking the button, filters seems to be cleared, the grid shows all rows, but the removed filters still visible in the column context menu.
Here is my example: http://jsfiddle.net/pbk1vcrz/

Steps to reproduce:

  1. filter currency column: [contains: ‘new’]
  2. click clear button
  3. check currency column context menu if filter is cleared

Thanks
Gabor

Hi @gabor.nagy,

You can reset internal state of this component by evaluating filter.conditionComponent._states = {};. Updated demo http://jsfiddle.net/pbk1vcrz/1/.

Thanks :slightly_smiling:

Hello @budnix,

Do you plan to move this expression into a method (maybe clearFormulas), or we need to evaluate every time, when removing a formula? It seems this is a ‘private’ field, and it would be great, if this kind of operations remain hidden…

thanks,
David

Yes @david_horvath, we plan move this expression to clearFormulas :slightly_smiling: