Load on demand

2 posts, 0 answers
  1. Balsuyambu
    Balsuyambu avatar
    37 posts
    Member since:
    Sep 2010

    Posted 11 Sep 2012 Link to this post

    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

     

     

  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 11 Sep 2012 Link to this post

    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.

  3. DevCraft banner
Back to Top