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

[Solved] Auto Filter not cleared even record deleted from grid.

1 Answer 57 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.
Hrushikesh
Top achievements
Rank 1
Hrushikesh asked on 05 Oct 2010, 04:11 AM
Scenario as below:


Create a new record and add to the gridView ItemSource (suppose the gridview have one column Description of type string)

add a record for deascription "AAAA"
Click the filter icon on the column and select "AAAA"
then delete the record from the item source of the grid.
Then again add anew record "BBBB"
Observe that the newly added record is not populated to the grid.
click on filter icon you can see the new value in the checkbox listitem.
click clear filter and you will get the newly added record on the gridview.

Please review and Let me know, that is there any property i need to set.
But i think its an issue related to filter.

Hrushikesh

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 05 Oct 2010, 08:04 AM
Hello Hrushikesh,

This is the correct behavior. By selecting the distinct value 'AAAA' check-box you are effectively saying: "Show only records that have description 'AAAA'". Then you add the record BBBB. Of course it will not show up. Only records that have description AAAA will show up, i.e. nothing will show up because you deleted the only record that had AAAA. If you want to see all records then you have to clear all filters.

You can do this either through the UI or programmatically by calling:

this.radGridView.FilterDescriptors.Clear();

So if you want to start from scratch with filtering each time the source collection changes -- simply clear all the filtering.

I hope this makes sense. Let me know if you have questions.

Regards,
Ross
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Hrushikesh
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or