FlexGridFilter settings not getting retained

Posted by: ykumar23 on 15 October 2017, 8:33 pm EST

  • Posted 15 October 2017, 8:33 pm EST

    Hi,

    I am new to Wijmo and I am using Wijmo chart to populate data into table.

    My issue is:

    when the filter values are changing manually by user in filter window, settings are getting retained. when filter is clicked it shows the previous values entered by user as is working as expected.

    But when we try to change these values programatically, filter not showing these values on filter window.

    I am settings the filter values as :

    this.flexGridFilter.filterDefinition = ‘values’

  • Posted 15 October 2017, 9:11 pm EST

    Please refer to the post below link given which describes how to save and load Filters.

    https://www.grapecity.com/en/forums/wijmo/keeping-applied-filter-val_1#wijmoarchivehiyou-will-nee

    Thanks,

    Abhishek

  • Posted 15 October 2017, 10:47 pm EST

    Thanks Abhishek,

    I have gone throug the code.

    I used similar logic to populate the filters which were stored in “localStorage”.

    I registered a function “updateFilterTypes” to “filterChanging” event. So when user clicks the menu “updateFilterTypes” gets called. In this event I am setting the type of filter to “1” which is conditional value. And the issue arises i.e values set programatically are not showing in the filter window.

    Registered a function to “filterChanging” event like this :

    this.flexGridFilter.filterChanging.addHandler(this.updateFilterTypes.bind(this));

  • Posted 16 October 2017, 6:20 pm EST

    Hi,

    I cannot replicate the issue, could you please modify the sample I have provided and send it back to me . I will investigate this case further thereon.

    Thanks,

    Abhishek

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels