Panel update speed dependent of RadTreeView content

5 posts, 0 answers
  1. Augusto Cosatti
    Augusto Cosatti avatar
    32 posts
    Member since:
    Jul 2009

    Posted 17 Dec 2010 Link to this post

    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
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 22 Dec 2010 Link to this post

    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.
  3. Augusto Cosatti
    Augusto Cosatti avatar
    32 posts
    Member since:
    Jul 2009

    Posted 23 Dec 2010 Link to this post

    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
  4. Augusto Cosatti
    Augusto Cosatti avatar
    32 posts
    Member since:
    Jul 2009

    Posted 23 Dec 2010 Link to this post

    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
  5. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 28 Dec 2010 Link to this post

    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.
Back to Top