Wijmo Grid Filter

Posted by: technical.store.technical on 22 June 2021, 3:07 am EST

  • Posted 22 June 2021, 3:07 am EST

    Hi,

    1. How to remove filter by condition from filters ?
    2. ‘ALL’ in cell is not getting displayed in the filter by value options list.

    Example : if I apply filter by value on Subjects column we do not see ‘ALL’ key in the option list. How can we add that ?

    https://stackblitz.com/edit/angular-cgursq?file=src/app/app.component.html

    Can you help us with the solution.

    Thank you.

  • Posted 23 June 2021, 9:31 pm EST

    Hi,

    To turn off the condition filter, you may set the defaultFilterType property of the filter to ValueFilter. You may refer to the following code snippet and sample:

        filter.defaultFilterType = wjGridFilter.FilterType.Value;
    

    Regarding the All value, it is not displayed in the value filter because all is not an actual underlying value in our data, it is just displayed on the UI. I would suggest you to not add the All value because in your sample all rows have different data source for subject,subsubjects columns, what this means that two rows could have All dispayed in the cell but the actual values could be different, in this case it would be impossible to determine which one value needs to be hidden and which one to display.

    ex: in the sample, for sub-subjects columns, both row 3 and 4 display all, but their underlying values are different.

    Regards

    Sharad

  • Posted 23 June 2021, 9:32 pm EST

Need extra support?

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

Learn More

Forum Channels