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

List of filtered items?

8 Answers 118 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Morgan McCollough
Top achievements
Rank 1
Morgan McCollough asked on 01 Sep 2010, 11:27 PM
Does anyone know if there is an easy way to get at the list of items in the grid that match the current filter? It seems that the "Items" collection only gives you the items that are currently in the view area. I would like to do something like select all the items that match the current filter in order to perform some operation on them. Thanks in advance!

Build: 2010.1.812.1040

8 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 02 Sep 2010, 07:38 AM
Hello,

 Generally Items will give you exactly the filtered (and sorted) items however in case of paging (not sure if this your case?) these filtered items will be paged.

Greetings,
Vlad
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
0
Morgan McCollough
Top achievements
Rank 1
answered on 03 Sep 2010, 01:03 AM
I was using the Items list to do something directly in the UI level. I was getting tripped up by a misunderstanding of row virtualization. The items list does work as expected. Thanks!
0
gianluigi
Top achievements
Rank 1
answered on 31 Jan 2011, 07:37 PM
Hi,

I need have the full list of filtered items in a paged GridView (the filtered items of all the pages) , how I can do this? The items only give me the list of visible rows-items


Gianluigi
0
Vlad
Telerik team
answered on 01 Feb 2011, 08:15 AM
Hi,

 Are you looking for your ItemsSource?

Regards,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
gianluigi
Top achievements
Rank 1
answered on 01 Feb 2011, 09:10 AM
Hi,

In the ItemSource I have all the items, I need only the filtered items but of all the pages, now I resolve removing the paging, get all the items and reapply the paging but is not a very beautiful solution

Gianluigi
0
Morgan McCollough
Top achievements
Rank 1
answered on 29 Mar 2011, 09:54 PM
Is there a way to do this without turning off row virtualization? I think the ItemsSource only gives you the visible items if you have RowVirtualization set to 'true'...
0
Vlad
Telerik team
answered on 30 Mar 2011, 06:58 AM
Hi Morgan McCollough,

 Actually ItemsSource is what you've assigned and this cannot be changed by RadGridView. You can use Items property of the grid - this will respect filtering, sorting, grouping, etc. 

Best wishes,
Vlad
the Telerik team
0
Morgan McCollough
Top achievements
Rank 1
answered on 30 Mar 2011, 04:12 PM
Thanks for the quick response. Yeah, you can ignore that last post. I wasn't really thinking about what I was saying :)

I think I was thinking about the behavior of the "Items" collection with RowVirtualization turned on or off. I think it was that with RowVirtualization turned on that collection only contained the items visible on the screen, but at this point I can't remember for sure. Just ignore me for now and I'll post again if I get to work with this again and have something more coherent to say :-)
Tags
GridView
Asked by
Morgan McCollough
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Morgan McCollough
Top achievements
Rank 1
gianluigi
Top achievements
Rank 1
Share this question
or