This is a migrated thread and some comments may be shown as answers.

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

1 Answer 33 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mukesh
Top achievements
Rank 1
Mukesh asked on 14 May 2020, 11:25 AM

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 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 14 May 2020, 01:38 PM

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.
Tags
General Discussions
Asked by
Mukesh
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or