My telerik gridview has 3 image button itemtemplates, when grid is loading with huge records it is taking much time to load but when those 3 buttons are made visible false there is no much time to load the grid with any number of records.
Suggest me how to overcome above one.
Advance Thanks.
Suggest me how to overcome above one.
Advance Thanks.
4 Answers, 1 is accepted
0

Princy
Top achievements
Rank 2
answered on 30 Jun 2011, 10:34 AM
Hello Prasad,
When you present large number of records at once you will see delays in the grid operations execution. Actually, the problem lies in the browser which cannot handle large amounts of HTML.
Check out the following documentation for more on this.
Client/server grid performance optimizations.
Thanks,
Princy..
When you present large number of records at once you will see delays in the grid operations execution. Actually, the problem lies in the browser which cannot handle large amounts of HTML.
Check out the following documentation for more on this.
Client/server grid performance optimizations.
Thanks,
Princy..
0

Prasad
Top achievements
Rank 1
answered on 30 Jun 2011, 01:39 PM
Here I need to display all records existing in database without paging and each row contains 3 image button itemtemplates.
Is there any way to overcome above.
Is there any way to overcome above.
0
Hello Prasad,
Unfortunately the problem is mostly browser related as the browser could not handle such amount of HTML. When you present large number of records at once you will see delays in the grid operations execution per this reason. If you have more than 100 records in a grid, it is strongly recommended to turn on the build-in paging/custom paging of the grid. This will not only optimize the grid loading time but also will enrich the user experience.
Greetings,
Maria Ilieva
the Telerik team
Unfortunately the problem is mostly browser related as the browser could not handle such amount of HTML. When you present large number of records at once you will see delays in the grid operations execution per this reason. If you have more than 100 records in a grid, it is strongly recommended to turn on the build-in paging/custom paging of the grid. This will not only optimize the grid loading time but also will enrich the user experience.
Greetings,
Maria Ilieva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0

Steve
Top achievements
Rank 1
answered on 05 Jul 2011, 08:00 PM
Prasad,
You mention that the speed is not an issue when not including the image buttons, but is an issue when you do. It does sound to me like it's related to the rendering of the page, not necessarily the size of the data set.
Have you observed your performance monitor to see if your CPU usage is raised considerably during the request/rendering of the page with the image buttons included? Have you tried it on different computers (either more powerful or less)?
It has been awhile (years) since I've dealt with related issues, but I seem to recall that there are some optimizations you can do that help the browser render the pages. Specifically, explicitly defining the height and width of any images included in the grid, allows the browser to not have to continue resizing/recalculating the table during rendering, due to not knowing the sizes of the images until they are placed.
And instead of using a GridButtonColumn, consider using GridTemplateColumn's, which allow you to have more control for defining how the image tag and attributes are set.
If that doesn't help, perhaps going with a non-image "button"/link would work better for you.
Just another dev,
-Steve
You mention that the speed is not an issue when not including the image buttons, but is an issue when you do. It does sound to me like it's related to the rendering of the page, not necessarily the size of the data set.
Have you observed your performance monitor to see if your CPU usage is raised considerably during the request/rendering of the page with the image buttons included? Have you tried it on different computers (either more powerful or less)?
It has been awhile (years) since I've dealt with related issues, but I seem to recall that there are some optimizations you can do that help the browser render the pages. Specifically, explicitly defining the height and width of any images included in the grid, allows the browser to not have to continue resizing/recalculating the table during rendering, due to not knowing the sizes of the images until they are placed.
And instead of using a GridButtonColumn, consider using GridTemplateColumn's, which allow you to have more control for defining how the image tag and attributes are set.
If that doesn't help, perhaps going with a non-image "button"/link would work better for you.
Just another dev,
-Steve