RadAjaxManager causes RadTreeView not to fire.

2 posts, 0 answers
  1. Diorelle
    Diorelle avatar
    1 posts
    Member since:
    Dec 2010

    Posted 07 Feb 2011 Link to this post

    Hi,

    I am having some issues with getting the RadTreeView and RadAjaxManager to work. After the page loads for the first time, I am still able to collapse/expand the RadTreeView that I've added on the page. As soon as I select and item from the dropdownlist to update the RadTreeView, it no longer allows me to expand/collapse or even click the the nodes. I don't get any errors either.

    Note that the code below is inside a ".ascx" file which will be used as a SharePoint webpart. I am currently using VS2010, .NET Framework 3.5, MOSS 2007.

    Please help.

    Thank you so much!

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
    <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="dropdownlist1" EventName="onselectedindexchanged">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID = "RadTreeView1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
      </AjaxSettings>
    </telerik:RadAjaxManager>
     
    <telerik:RadTreeView ID="RadTreeView1" runat="server">
            <Nodes>
                <telerik:RadTreeNode runat="server" Text="Root RadTreeNode1">
                    <Nodes>
                        <telerik:RadTreeNode runat="server" Text="Child RadTreeNode 1">
                        </telerik:RadTreeNode>
                        <telerik:RadTreeNode runat="server" Text="Child RadTreeNode 2">
                        </telerik:RadTreeNode>
                    </Nodes>
                </telerik:RadTreeNode>
                <telerik:RadTreeNode runat="server" Text="Root RadTreeNode2">
                </telerik:RadTreeNode>
            </Nodes>
        </telerik:RadTreeView>
    <asp:DropDownList ID="drpTaxonomyType" runat="server"
                    CssClass="taxonomy_type"
                    onselectedindexchanged="drpTaxonomyType_SelectedIndexChanged"
                    AutoPostBack="True">
            <asp:ListItem Selected="True">Choose One</asp:ListItem>
            <asp:ListItem>Practice Areas</asp:ListItem>
            <asp:ListItem>Geography</asp:ListItem>
            <asp:ListItem>Court</asp:ListItem>
            <asp:ListItem>Industry</asp:ListItem>
        </asp:DropDownList>

    Master page:
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
       </telerik:RadScriptManager>
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 10 Feb 2011 Link to this post

    Hi Diorelle,

    Could you please add a setting in the RadAjaxManager in which the RadTreeView updates itself and verify if this makes any difference. Like this:
    <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadTreeView1" >            
              <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID = "RadTreeView1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
    </AjaxSettings>




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