Posted 04 May 2011 Link to this post
Very easy if your items control is virtualized. For example ListBox is exactly such ItemsControl - you can check the attached example application with ListBox bound to virtual collection of 1 million items.
<
ListBox
ItemsSource
=
"{Binding}"
>
ListBox.ItemTemplate
DataTemplate
TextBlock
Text
"{Binding ID}"
/>
</
ListBox.ItemsPanel
ItemsPanelTemplate
Primitives:RadUniformGrid
Columns
"2"
ChildrenFlow
"Horizontal"
VerticalAlignment
"Top"
I'm afraid that RadUniformGrid is not VirtualizingPanel - the virtual collection can work only with virtualized controls.
Currently we do not have such plans.
ItemsControl
ItemsControl.ItemTemplate
ItemsControl.ItemsPanel
VirtualizingStackPanel
Posted 09 May 2011 Link to this post
Posted 12 May 2011 Link to this post
I'm afraid that simply changing ItemsPanel of plain ItemsControl to VirtualizingStackPanel will not make it virtual. You will need ScrollViewer as well.
Posted 25 Sep 2012 Link to this post
RadUniformGrid is not a virtual panel/grid - you can use our VirtualizingWrapPanel instead.
Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.
I've attached an example project to illustrate you how to achieve your goal.
I believe you can call less times your service if you use for example some timer and raise the call after some time (for example 200 milliseconds) in ItemsLoading event of the virtual collection.