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

Lazy Image Loading In Grid with ajax

1 Answer 128 Views
Grid
This is a migrated thread and some comments may be shown as answers.
coderz
Top achievements
Rank 1
coderz asked on 04 Jan 2013, 07:16 AM

I try to demonstrate for an article lazy load plugin (http://www.appelsiini.net/projects/lazyload) within telerik grid..
If I ajaxified the grid with RadButton the plugin doesnt work cause it will not find image tags at page source.
How can i work it with ajaxified button->grid and grid->grid also

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 09 Jan 2013, 09:59 AM
Hello Armagan,

The problem in this case is that the scripts are loaded only on initial pageLoad and are not fired after the ajax request is made. In order to make things work correctly you can hook up to the OnGridCreated client-side event and attach attach the scripts there. Using the code provided I created a sample project which behaves as expected. You can find it in attachments.

Kind regards,
Angel Petrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
coderz
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or