Delay loading of image cells on non-visible rows (client side)
Delay loading of image cells on non-visible rows (client side)
Each grid row has an image column. My images are being loaded from a remote source and on top of that via a poor network connection, so 10 rows are taking about 20 seconds to load. Because of the nature of the web page this is actually acceptable. However, when there are 20 rows returned it is taking double the amount of time even though my page size is set to 10 and those other 10 rows aren't visible. Without reverting to server side and doing server side paging, is there a way to delay the loading of the images until the row they are on is visible?
Answers
See if
deferRender
helps.Kevin
Yup - if you Ajax load the data and use the
deferRender
option as Kevin says, that way the images won't be requested until they are displayed.Allan