Navigate with RadTreeView

2 posts, 0 answers
  1. Josh Powell
    Josh Powell avatar
    2 posts
    Member since:
    Apr 2010

    Posted 30 Apr 2010 Link to this post

    I have a MasterPage with a RadTreeView that I would like to use to navigate through a site by updating an ajaxed ContentPlaceHolder.  I have a regular asp:Panel wrapping a ContentPlaceHolder as is suggested but I'm still getting a full postback.  The ajax seems to kick off and Loading Panels show up, but they disappear well before the content is updated in a full postback.

    I originally tried using the NavigateURL attribute of the RadTreeNode but it wouldn't initiate any Ajax at all, so instead I am tying into the OnNodeClick event and doing a RadAjaxManager.Redirect() call from there.  Any thoughts on why the Master is still posting back instead of just the content?

    <?xml version="1.0" encoding="utf-8" ?> 
    <Tree > 
     <Node PostBack="false" Text="Project Data" > 
        <Node Text="SingleProject Data" Expanded="False" PostBack="false" > 
          <Node Text="Home" NavigateURL="#" Value="Home.aspx"></Node> 
          <Node PostBack="false" Text="Project Management" > 
            <Node Text="Configuration" NavigateURL="#" Value="Configuration.aspx"></Node> 
          <Node PostBack="false" Text="Project Detail"
            <Node Text="Shipping" NavigateURL="#" Value="Shipping.aspx" /> 
            <Node Text="Building" NavigateURL="#" Value="Building.aspx" /> 
     protected void NodeClick(object sender, RadTreeNodeEventArgs e) 
                if (e.Node.NavigateUrl == "#"
    <form id="form1" runat="server"
        <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True"
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
                <telerik:AjaxSetting AjaxControlID="RadTreeView1"
                        <telerik:AjaxUpdatedControl ControlID="pHeaderAjax" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                        <telerik:AjaxUpdatedControl ControlID="pContentAjax" LoadingPanelID="RadAjaxLoadingPanel1" /> 

  2. Iana Tsolova
    Iana Tsolova avatar
    3388 posts

    Posted 05 May 2010 Link to this post

    Hello Josh,

    When navigating through the TreeView, are you redirecting to another page?
    Note that ajax is used to update particular page content on the same page only. For a new page to be loaded a full postback should be performed.

    Sincerely yours,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top