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

Get list of displayed items

2 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 08 Jul 2009, 01:37 PM
Hello

My WPF RadGridView is bound to a list of business objects using its ItemsSource property. So far we were using the grid's Records property to get all objects that are being displayed after filtering and in the current sort order. In the latest version of the WPF control suite (Q2 2009) mostly everything related to RadGridView.Records (Record and DataRecord class) is marked as obsolete. So how to get the list of displayed items now?

I've already tried CollectionViewSource.GetDefaultView(myGrid.ItemsSource) but this gets the whole list not only the list after filtering.

Thanks for any help

Christian

2 Answers, 1 is accepted

Sort by
0
Accepted
Milan
Telerik team
answered on 08 Jul 2009, 11:34 PM
Hello Christian,

We are currently working on a property called "Items" that will give access to the items that are displayed in RadGridView. I can send you a custom build once the property is ready.

Sorry for the inconvenience. 

Best wishes,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Christian
Top achievements
Rank 1
answered on 09 Jul 2009, 06:37 AM
Dear Milan

Many thanks for your answer. I thing we're going to leave the code using Records and switch to items once the new Items property will work and will be available in an official release. So you don't need to send me the custom build but thank you for the offer.

Best regards

Christian
Tags
GridView
Asked by
Christian
Top achievements
Rank 1
Answers by
Milan
Telerik team
Christian
Top achievements
Rank 1
Share this question
or