Use foreach or for

2 posts, 0 answers
  1. ss
    ss avatar
    50 posts
    Member since:
    Jun 2010

    Posted 04 Mar 2011 Link to this post

    Hello,

    I would like to ask you. How can I iterate throw all items within VirtualQueryableCollectionView that are loaded by using VirtualQueryableCollectionView.Load method? I need to use foreach or FOR to be able to read all values. My next question is. Do you know some way how to set System.Windows.Controls.DataGrid.ItemsSource to VirtualQueryableCollectionView? 

    Does VirtualQueryableCollectionView.Load method do copy of items?

    Thank you.

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 04 Mar 2011 Link to this post

    Hello,

     You can iterate normally VirtualQueryableCollectionView since it is IEnumerable however you will get null for items which are not loaded. I'm afraid that VirtualQueryableCollectionView cannot work with standard Silverlight DataGrid - you can use RadGridView instead similar to our demos. 

    Greetings,
    Vlad
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. DevCraft banner
Back to Top