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

Determine Filtered Rows

1 Answer 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 2
Matt asked on 19 Oct 2010, 10:34 PM
I have a scenario where I want to iterate through a list of items in the RadDataGrid's items collection and perform an operation on each item only if that item matches the user's current filter on the grid. The problem is, the Items property returns all items in the grid, including items that are currently excluded by the filter.

What's the best way of taking an individual item and determining if it matches the Grid's filter criterion (or just getting a list of all items that match the filter)?

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 25 Oct 2010, 10:16 AM
Hello Matt Eland,

That should not be true. The Items collection contains the filtered data (the data that is actually shown in the gridview). How do you filter the gridview? Do you use its built-in filtering, or RadDataFilter or an external filtering?


Greetings,
Veselin Vasilev
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
Matt
Top achievements
Rank 2
Answers by
Veselin Vasilev
Telerik team
Share this question
or