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

Panel update speed dependent of RadTreeView content

4 Answers 40 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Augusto Cosatti
Top achievements
Rank 1
Augusto Cosatti asked on 17 Dec 2010, 12:31 PM

Hello.

I'm using a RadSplitter control with a RadTreeView in the left pane and a detail ASP:Panel on the right pane.

All is working fine except the speed of the right panel update. Updating the controls in the as:panel container is very slow when the tree contains many nodes and it's fast when the tree contains a few nodes. The update is triggered when the user clicks on a node.

In the Ajax Manager i'm updating the asp:panel PanelTreeItems only and not the left pane that contains the tree (PanelMain). Does it mean that the tree is also updated?
Here is the ASP code

...
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxyFilters" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadTreeView">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PanelTreeItems" LoadingPanelID="RadAjaxLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <telerik:RadWindowManager ID="RadWindowManager" runat="server" Skin="Outlook">
    </telerik:RadWindowManager>
...
<asp:Content ID="ContentMain" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
    <asp:Panel ID="PanelMain" runat="server" Visible="true">
    <table>
        ...
        <telerik:RadSplitter ID="RadSplitter" runat="server" Height="100%" Width="100%" Visible="false"
            ResizeMode="EndPane" Skin="Office2007">
            <telerik:RadPane ID="Radpane1" runat="server" Width="350" Scrolling="Y" MinWidth="22">
                <table id="MainTable" style="z-index: 102;" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <telerik:RadTreeView ID="RadTreeView" runat="server" CheckBoxes="false" Height="90%">
                        </telerik:RadTreeView>
                    </tr>
                </table>
            </telerik:RadPane>
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward"></telerik:RadSplitBar>
            <telerik:RadPane ID="Radpane2" runat="server" Scrolling="None" MinWidth="22">
                <asp:Panel ID="PanelTreeItems" runat="server" Visible="true">
                ...
                </asp:Panel>
            </telerik:RadPane>
        </telerik:RadSplitter>
    </table>
    </asp:Panel>
</asp:Content>

Thanks for you help.
Regards
Augusto

4 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 22 Dec 2010, 02:57 PM
Hello Augusto,

If you are adding just the PanelTreeItems in the RadAjaxManager settings the RadTreeView control shouldn't been updated. Could you please disable the Ajax on the page and verify if this makes any difference on the application performance?


Kind regards,
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
Augusto Cosatti
Top achievements
Rank 1
answered on 23 Dec 2010, 10:16 AM
Maria,

I have disabled Ajax and now the performance is much better. Of course all the page is refreshed but when I click on a tree node the item in the right pane is displayed quickly.

Expanding the full tree view is also much faster. It takes 4 seconds with Ajax and 2 seconds without Ajax. The number of nodes in the tree is 750.

Any idea?

Thanks
Regards
Augusto
0
Augusto Cosatti
Top achievements
Rank 1
answered on 23 Dec 2010, 11:14 AM
Hi Maria.

The problem seems to come from the Splitter. I have removed it and the response time has been divided by 2.

Can you please discuss this issue with the development team and see if you can do something?
I'm using the assembly version 2009.2.826.35.

Thanks
Best regards
Augusto
0
Iana Tsolova
Telerik team
answered on 28 Dec 2010, 09:55 AM
Hi Augusto,

The time an ajax request is executed depends on the amount of the updated controls html. So the more controls you update at once, the slower the load is. And, indeed, in a scenarios when almost all of the page content is updated, ajax request can finish much slower than regular postback.
However to isolate the issue further and see which control is affecting the performance, RadAjax or RadSplitter, I would ask you to try ajaxifying the page with ASP:UpdatePanel instead of RadAjax and tell me what is the behavior. For that purpose, comment the ajax settings, wrap the PanelTreeItems panel into ASP:UpdatePanel, and in its Triggers add the RadTreeView as async one.

Regards,
Iana
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.
Tags
Ajax
Asked by
Augusto Cosatti
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Augusto Cosatti
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or