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

Load Image After Items Loaded

1 Answer 24 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
heavywoody
Top achievements
Rank 1
heavywoody asked on 01 Apr 2014, 07:10 AM
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.

1 Answer, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 03 Apr 2014, 06:13 AM
Hello,

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.

Regards,
Rosen Vladimirov
Telerik
 

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.

 
Tags
ListBox
Asked by
heavywoody
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Share this question
or