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

Loading large images / content in a DataGrid

1 Answer 47 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Alec
Top achievements
Rank 1
Alec asked on 11 Nov 2008, 02:52 PM
Dear Telerik Wizards,

How can I load the images in a datagrid using AJAX / RadAjax?

I have a large number of images in templatecolumns in a datagrid (up to 100 images) and it is really slow loading the whole grid because of the images.  I would like to display a loading panel for each image while they are loading to speed things up.  Is this possible?  Note that I want this to happen as soon as the page initially loads.

Alternatively, can I show a loading panel for the whole datagrid while it loads?  I can figure out using loading panels when triggered by a client event but I can't figure it out on loading from the start.

Please Help!

Thanks.

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 14 Nov 2008, 09:21 AM
Hello Alec,

You can create basic HttpHander which will stream the image asynchronously. Thus when RadGrid has loaded all the other images will continue loading.

You can find sample application illustrating this functionality attached to this post.

Greetings,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Alec
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or