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

Load on demand

1 Answer 18 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Balsuyambu
Top achievements
Rank 1
Balsuyambu asked on 11 Sep 2012, 08:26 AM
Hi

We have a requirement to load thousand of records and tried to implament load on demand using VirtualQueryableCollectionView.

But if i load 5 lak records in my test page and tested with normal loading techniquies as well as VirtualQueryableCollectionView.

both are getting same time to load (4-5 seconds).

Normal way
   

 

 

public UCTSGridTest()

 

{

    InitializeComponent();

    CollList =

 

Club.GetClubs();

 

 

 

    clubsGrid.ItemsSource = CollList;
}

Using VirtualQueryableCollectionView

 

 

 

public UCTSGridTest()

 

{

    InitializeComponent();

    CollList =

 

Club.GetClubs();

 

    view = new VirtualQueryableCollectionView() { LoadSize = 10, VirtualItemCount = 500000 };

 

    DataContext = view;

    view.ItemsLoading +=

 

new EventHandler<VirtualQueryableCollectionViewItemsLoadingEventArgs>    (view_ItemsLoading);

 

}

 

 

 

 

void view_ItemsLoading(object sender, VirtualQueryableCollectionViewItemsLoadingEventArgs e)

 

{

    view.Load(e.StartIndex, CollList.Skip(e.StartIndex).Take(e.ItemCount));

}

 

 

Did i miss anything

 

 

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 11 Sep 2012, 02:29 PM
Hello,

The GanttView control currently doesn't support the VirtualQueryableCollectionView to perform load on demand. The initial load of the control will work two times faster in the 2012 Q3 version of RadControls for Silverlight and will support load on demand for the collapsed nodes, meaning that the children will be loaded only when the node is expanded. We have no plans for implementing data virtualization for scrolling yet.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GanttView
Asked by
Balsuyambu
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or