Load Image After Items Loaded

2 posts, 0 answers
  1. heavywoody
    heavywoody avatar
    79 posts
    Member since:
    Oct 2009

    Posted 01 Apr 2014 Link to this post

    I am trying to use listbox and make something like Windows Explorer.  I am loading in 8000 items, so the virtualizing is very helpful.   I wish scrolling wasn't so clunky.  But here is the issue.  Is there a way a way to do like Windows Explorer and load the image for the items when they appear virtualized or after the fact?  You see, if I wait for 8000 items to make a call to the backend and get their icons, it will take forever.  So I need to get the icons for each item in the listbox when I need it.  But I can't figure out how to do that.  Do you have any samples?  I hope that makes sense.  I am sure you have seen it where the items in a list appear with place holders and then the images come in as they are loaded.
  2. Rosen Vladimirov
    Rosen Vladimirov avatar
    640 posts

    Posted 03 Apr 2014 Link to this post


    I suggest you to take a look at our DataServiceDataSource and VirtualQueryableCollectionView. You can find an example how to use VirtualQueryableCollectionView in our WPF demos - navigate to DataVirtualization examples:
    DataContext = new VirtualQueryableCollectionView(new NorthwindEntities().Order_Details.OrderBy(o => o.OrderID)) { LoadSize = 5 };

    This way you will load only some of the items, not all of them and the loading will be much faster.

    Hope this helps. Feel free to contact us in case you have any problems or concerns.

    Rosen Vladimirov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
Back to Top