How to retain column level filter when i switch across the view

2 posts, 0 answers
  1. Mukesh
    Mukesh avatar
    61 posts
    Member since:
    May 2019

    Posted 14 May 2020 Link to this post

    I want to retain column level filter when i switch across multiple view. I am able to retain filter for my data but that filter in not showing in grid column.

     

    I want that user can see the applied filter in grid column too. IF filter is applied on multiple column he should see that too.

     

    Regards,

    Mukesh 

  2. Stefan
    Admin
    Stefan avatar
    3039 posts

    Posted 14 May 2020 Link to this post

    Hello, Mukesh,

    The filter that is shown in the Grid is based on the dataState that is passed to the Grid and more specifically the filter property of the Grid:

    https://www.telerik.com/kendo-react-ui/components/grid/api/GridDataStateChangeEvent/#toc-datastate

    https://www.telerik.com/kendo-react-ui/components/grid/api/GridProps/#toc-filter

    The dataState can be retained the same way the data is, and when passing the filtered data to the new view, pass the data state (or only the filter state) to that view and set it to the Grid.

    Regards,
    Stefan
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top