Get list of displayed items

3 posts, 1 answers
  1. Christian
    Christian avatar
    22 posts
    Member since:
    Nov 2008

    Posted 08 Jul 2009 Link to this post

    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. Answer
    Milan
    Admin
    Milan avatar
    1989 posts

    Posted 08 Jul 2009 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Christian
    Christian avatar
    22 posts
    Member since:
    Nov 2008

    Posted 09 Jul 2009 Link to this post

    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
Back to Top