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

[Solved] A very Technical Question regarding Ajax Performmance

5 Answers 89 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Maged
Top achievements
Rank 1
Maged asked on 08 Jun 2009, 07:34 AM
Dear Telerik Team,
we have been building Complex asp.net web application with heavy standard asp.net controls for years now, we have implemented microsoft standard ajax tool ( manager + update panels) on several of our web applications.

the problem is : it is very very veeeeeeeeery slow specially with complex pages, when we researched the issue on the internet , we found that the update panel of microsoft and script manager is simply stupid. even if you need to refresh a simple combo box based on user changing another combobox, the update panel transfers the total page for processing on the server ( including viewstate), the page itself is processed on the server totally as a complete request and then returned back to the browser as a complete web page.

that means that ajax request using microsoft update panel provides at best the same time of a complete page request.

the microsoft update panel is simply useful to stop browser flickering!!!!


the question is : does the ajax manager provides any advantages over microsoft update panel  in the terms of performance, traffic  and server load ( it should be as it is configured to select only affected control ??? ) and how does it manage the viewstate between ajax request ????

5 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 09 Jun 2009, 11:28 AM
Hello Maged,

Your observations are correct, I only want to point out that the output, which is returned to the browser during an AJAX request, is not the whole web page, but only the updated HTML, which should be replaced.

Being based on the ASP.NET AJAX framework, the Telerik AJAX controls (RadAjaxManager, RadAjaxPanel) use internally asp:UpdatePanels, which are generated on the fly, so you will not experience performance benefits. The strength of the RadAjaxManager is in its flexibility and ease of use. For more information, please refer to:

http://www.telerik.com/help/aspnet-ajax/ajxajaxmanager.html

Currently we are developing a new control, which will be similar to this one - it will work a lot faster than AJAX, however, it will not be as universally applicable, due to its specifics.


All the best,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Maged
Top achievements
Rank 1
answered on 11 Jun 2009, 07:29 AM
Dear Sir,
thank you for your reply and honesty, during your post you referred to multiple update panels created by the RAD Ajax Manager. we use one update panel in our pages for the total page, but it seems you are using multiple update panels ?? i am just asking why several updates panel and not one. does this improve performance , may be in this case the RAD Ajax manager will give us a sligh improvement as it will create multiple panels for us optimizing perfromance of pages that we were used to put inside one panel


your feedback is highly appreciated

thanks
0
Dimo
Telerik team
answered on 11 Jun 2009, 08:29 AM
Hello Maged,

Maybe I have not expressed myself clearly. RadAjaxManager creates only as many update panels as needed, not more. For example, if you have only one updated control, only one update panel will be created:


<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Button1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

As I stated above, the performance of asp:UpdatePanels and RadAjaxManager is practically the same, as the speed penalty comes from the fact that the page life cycle is executed in whole and all control instances are recreated on the server.


All the best,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Maged
Top achievements
Rank 1
answered on 11 Jun 2009, 12:19 PM
ok, thank you for the quick reply.

what about the new control ? when it is going to be released and where should i look for more information about it ????


thx and sorry for the disturbance
0
Accepted
Ivo
Telerik team
answered on 11 Jun 2009, 12:29 PM
Hi Maged,

The new "WebServicePanel" control can be updated with WebServices or ASP.NET CallBack requests on the client. This panel allows you to easily create ASP.NET 2.0 responsive applications with minimum HTML footprint. Any content in the WebService panel will be updated quickly without the need of full page lifecycle or Viewstate.

More details will be available with the beta release next week. Stay tuned!

All the best,
Ivo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
Maged
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Maged
Top achievements
Rank 1
Ivo
Telerik team
Share this question
or