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

[Solved] Filter Issue.

1 Answer 78 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Saket S
Top achievements
Rank 1
Saket S asked on 25 Dec 2009, 01:35 PM

Hi Telerik,

We have RAD grid view.
when we apply the filter on the any grid column then it working fine. But whenever i rebind (after the clicking the some button)the same grid with same data source, then filter icon (Y) is remain the selected.
that means the Column header will not get reset(cleared ), but it will show UN-Filtered data(proper data, whole data) only problem is Filter icon (Y) selected.

for this we also tried with grid.datacontext = null & then grid.datacontext = data source.
this solves above defect but the Filter is populated with No Data but column contain the data.

We have to Reset it, Can you please help us ................

Regards,
Saket





1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 28 Dec 2009, 10:12 AM
Hi Saket S,

I believe we have fixed this with our latest version. When the grid is bound to a collection of the same type its filters are automatically preserved. If you want to clear them, then clear the FilterDescriptors collection before rebinding the grid.

Please, take a look at the sample project attached.

Regards,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Saket S
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or