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

Adding AJAX makes page slow

3 Answers 80 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Sowjanya Karumuri
Top achievements
Rank 1
Sowjanya Karumuri asked on 16 Sep 2009, 05:14 PM
Hi,
I wonder if this has been discussed before but after going through all the threads I still have this below mentioned issue unresolved

Scenario:

I have 4 Combo boxes and 2 datapicker controls on the page.
There are Submit and cancel buttons right below the above mentioned controls.

Functionality of the Page:
All the combo boxes are intially loaded with data. the 3rd combo box has 6000 records in it.
When the first combo is selected, it reloads the 2nd conbo and when a value from 2nd combo is selected then the 3rd combo is reloaded based on the values selected from the previous combos.
The 4th combo is independent and loaded when the page loads.

Problem:
When I run this page without adding ajax to the combo boxes, the page runs fast and as know it refresh and appears again with the selected data.
When I add ajax to these combo boxes as in the sequence they update, selecting the first combo updates the 2nd combo in 3 sec and selecting the 2nd combo updates the 3rd combo in 20 sec.

Question:
Why is this happening on adding ajax to the page? Is it happenign because of the record size of the third combo box? But still it should not be taking 20sec to do it.
Attime I see that it only happens when the combo boxes are seletc for the first time. Later when the are selected for 2nd or 3rd time then the workign is fast.

Few Details about the page:
> The page uses a master page
> I'm using RadAjaxManger and RadLoadingPanel (I used RagAjaxProxyManger but no use. The page reloads again and its not what I'm looking for)
> All the controls are put in a table and this table is in a Panel and the RadAjax controls are outside the panel
> The widths and heights are given in terms of pixels
> No layout is chosen for the table
> There are 2 image buttons on the page which on clicking opens a dialogue box using javascript
> All the datasources are loaded at the codebehind

With this information can you please tell why this is happening. There are other scenarios too where in updating date fields on a button click is also slowed by adding the ajax to the button and the datapicker fields to be updated.
I have problem understanding why adding ajax slows my page so badly

Please let me know and please do ask if you need any more information.

Thanks in Advance
Sowji

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 21 Sep 2009, 06:26 AM
Hello Sowjanya,

Performance problems can be caused by large updating areas with lots of HTML (especially tables), JavaScript files, JavaScript components and CSS. For more information, please refer to the following help article:
Optimizing client-side performance

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Sowjanya Karumuri
Top achievements
Rank 1
answered on 24 Sep 2009, 09:19 PM
Hi Pavlina

Thanks for the reply. I already looked at that link but it dint help me much becasue:

> I'm not using % for the table dimensions
> The controls are put in a table and the table is in the Panel

Please let me know if there are any other issues thats depleting the process performance.

Thanks
Sowji

0
Pavlina
Telerik team
answered on 25 Sep 2009, 03:10 PM
Hi Sowjanya,

If your problem(s) persists, it will be best if you can send us a simple running project (incl. CSS, images, skins, DB backup if needed and so on) demonstrating the problem (and step-by-step instructions on doing so). In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Ajax
Asked by
Sowjanya Karumuri
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Sowjanya Karumuri
Top achievements
Rank 1
Share this question
or