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

RadTreeView Ajax as Master for Master-Detail is slow

1 Answer 58 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Charles Forsyth
Top achievements
Rank 2
Charles Forsyth asked on 27 Aug 2008, 07:47 PM
Hi Gurus,

I'm using a RadTreeView to pick an item from a list of hierarchical data and I want to display details for that item in a DetailsView control.

I have it woking, but it is VERY slow. After the user clicks on an item it takes quite a long time (relatively) to populate the DetailsView via AJAX.

I tested with a DropDownList control and it is very quick. The DetailsView loads really fast.

I'm thinking maybe I'm doing something wrong with your RadTreeView so maybe you can help me out?

Here are the details...

I set up the RadTreeView with an OnNodeClick event like so...

    <telerik:RadTreeView ID="RadTreeView1" Runat="server"   
        DataSourceID="SqlDataSource1" 
        DataFieldID="ServiceLineID" 
        DataFieldParentID="ParentID" 
        DataTextField="ServiceLineName" 
        DataValueField="ServiceLineID" 
        OnNodeClick"RadTreeView1_NodeClick"> 
    </telerik:RadTreeView> 

I have a Master Page so I'm using a RadAjaxManagerProxy like so...

    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadTreeView1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="DetailsView1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="DetailsView1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="DetailsView1" /> 
                    <telerik:AjaxUpdatedControl ControlID="RadTreeView1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManagerProxy> 

Any ideas how I can improve ajax performance here? I'd rather not have to cascade drop-down lists for this hierarchical data.

Thanks in advance.

-Charles

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 01 Sep 2008, 11:30 AM
Hello Charles Forsyth,

There should be no performance issues caused by the treeview and your code looks correct.

Have you tried with no master page and with RadAjaxManager?
Let me know the result.

Sincerely yours,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Charles Forsyth
Top achievements
Rank 2
Answers by
Veselin Vasilev
Telerik team
Share this question
or