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

RadGrid loading time in IE6

7 Answers 113 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 25 Sep 2008, 04:56 AM

Hi there,

I have some performance issue with the grid. The page that uses RadGrid is rendered rather quickly - but once the page is rendered and displayed, it takes the browser a few seconds of processing time before settling down.The amount of cilent side processing is most pronounced in IE6 (firefox is a few times more efficient).

Is this a known issue?

I had a quick look at the HTML and the size of embedded javascript is about 200kb. I am wondering if the browser needs to initialize / execute something when everything has been rendered - and if so what we can do to reduce the processing time.

The grid is not paged and there are about 60 items bound to it. Size of HTML for the RadGrid is a bit over 130kb.


Quick excerpt of the script:
<script type="text/javascript">
//<![CDATA[
Sys.Application.initialize();
Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadGrid, {"ClientID":"ctl00_ContentPlaceHolder1_CategoryGrid","ClientSettings":{"PostBackFunction":"__doPostBack(\u0027{0}\u0027,\u0027{1}\u0027)","AllowExpandCollapse":true,"AllowGroupExpandCollapse":true,"ColumnsReorderMethod":0,"ShouldCreateRows":true,"Selecting":{"EnableDragToSelectRows":true},"Scrolling":{"SaveScrollPosition":true,"ScrollHeight":"300px"},"Resizing":{"ClipCellContentOnResize":true},"ClientMessages":{"DragToGroupOrReorder":"Drag to group or reorder","DragToResize":"Drag to resize","DropHereToReorder":"Drop here to reorder","PagerTooltipFormatString":"Page: \u003cb\u003e{0}\u003c/b\u003e out of \u003cb\u003e{1}\u003c/b\u003e pages"}},"Skin":"Outlook","UniqueID":"ctl00$ContentPlaceHolder1$CategoryGrid","_activeRowData":"","_clientKeyValues":{},"_currentPageIndex":0,"_editIndexes":"[]","_gridTableViewsData":"[{\"ClientID\":\"ctl00_ContentPlaceHolder1_CategoryGrid_ctl00\",\"UniqueID\":\"ctl00$ContentPlaceHolder1$CategoryGrid$ctl00\",\"PageSize\":10,\"PageCount\":1,\"CurrentPageIndex\":0,\"VirtualItemCount\":0,\"AllowMultiColumnSorting\":false,\"sliderClientID\":\"\",\"sliderLabelClientID\":\"\",\"Name\":\"\",\"IsItemInserted\":false,\"clientDa
.
.


7 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 25 Sep 2008, 07:23 AM
Hello Ron,

If you do not want the grid JavaScript functionality you can remove it completely similar to the example in my blog post:
http://blogs.telerik.com/vladimirenchev/Posts/08-07-15/Telerik_RadGrid_Section_508_Compliance.aspx

All the best,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Neeraj Jain
Top achievements
Rank 1
answered on 02 Feb 2009, 09:30 PM
We have the same issue but we definitely want all javascript functionality. Is there any other way to execute these in background so that brower window is released.
0
Sebastian
Telerik team
answered on 03 Feb 2009, 08:25 AM
Hi Neeraj,

Useful hints about how to optimize the RadGrid performance and your page overall performance can be found in the resources pointed below:

http://www.telerik.com/help/aspnet-ajax/gridoverview.html (Chapter 'Performance tips and tricks'
http://www.telerik.com/products/aspnet-ajax/resources/top-performance.aspx

They can help you reduce the loading time of the browser.

Best regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Neeraj Jain
Top achievements
Rank 1
answered on 06 Feb 2009, 02:36 PM
Hello,

I have been to these chapter so many times, but I just wanted if you could help me pin-point the performance improvement section where "I can remove/delay the script INITIALIZATION part that is freezing IE" for few seconds before releasing control to user. NOTE: I still want all javascript functionalities.

Neeraj
0
Sebastian
Telerik team
answered on 06 Feb 2009, 03:08 PM
Hi Neeraj,

I am running out of ideas since you said you applied all applicable optimization techniques in your case.

The only suggestions for this case that may cause a difference are that you ensure you use RadScriptManager to combine the scripts for all RadControls and eventually utilize the RadCompression module available with the Q3 2008 SP2 release of RadControls for ASP.NET AJAX (2008.3.1314).

Best regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Neeraj Jain
Top achievements
Rank 1
answered on 12 Feb 2009, 05:20 AM
All initialization scripts for telerik controls runs after html is rendered on browser, and those init script are freezing (for few sec) our browser. Is there any way we can (1) Run those scripts before rendering of html (2) Run those init functions Asynchronously so that browser is workable

Thanks in Advance.
0
Sebastian
Telerik team
answered on 12 Feb 2009, 08:42 AM
Hello Neeraj,

Unfortunately serving the scripts asynchronously is not possible. Loading them before the rendered html is not attainable because some of them are associated with elements of the rendered controls and such flow will generate errors.

The possible solutions were discussed previously in this forum thread - please utilize as much of them as possible to optimize the overall performance.

Kind regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Ron
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Neeraj Jain
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or