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

Use foreach or for

1 Answer 42 Views
Data Virtualization
This is a migrated thread and some comments may be shown as answers.
ss
Top achievements
Rank 1
ss asked on 04 Mar 2011, 03:53 PM

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.

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 04 Mar 2011, 04:04 PM
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!
Tags
Data Virtualization
Asked by
ss
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or