This question is locked. New answers and comments are not allowed.
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
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