Radtreeview inside a user control

2 posts, 0 answers
  1. Mona
    Mona avatar
    1 posts
    Member since:
    May 2013

    Posted 22 May 2013 Link to this post

    I have a radtreeview inside a user control, the issue is when node is selected in the treeview, none of the events are getting fired, not even the page load of the control. Below is the code for aspx page. please help in resolving this.

     <td valign="top" align="left" width="425px">

     <asp:UpdatePanel ID="updatepanelitemlist" runat ="server" >

     <ContentTemplate >

     <telerik:RadTabStrip ID="tabMasterContainer" runat ="server"

     Width="438px" CssClass="best__tab_xpie7" SelectedIndex="2"

     MultiPageID ="radmultipage1" BackColor ="White" >

     <Tabs >

     <telerik:RadTab Text ="Custom Lists" runat ="server"

     PageViewID ="pagecustomlist" CssClass ="node" ForeColor ="#000000" Selected="true" >


     <telerik:RadTab Text ="Standard Lists" />

     <telerik:RadTab Text="Search" Selected="True" />



     <div ID="divtvCompanyCustomList" style="padding-left:8px;overflow: auto; height: 400px; width: 430px; background: white;">

     <table border="0" width="410px" cellpadding="0" cellspacing="0" class="p">



     <img alt="" width="1" src="../Images/spcr.gif" />


     <td align="left">

     <asp:LinkButton ID="lnkCompanyCustomTreeCollapse" Text="Collapse All" runat="server" Font-Size="Smaller" />&nbsp;&nbsp;&nbsp;

     <asp:LinkButton ID="lnkCompanyCustomTreeExpand" Text="Expand All" runat="server" Font-Size="Smaller" />




     <telerik:RadMultiPage ID="rmp" runat="server" SelectedIndex ="0" Width ="410px">

     <telerik:RadPageView runat="server" ID="page1" Selected="true" Width ="410px" >

     <telerik:RadTreeView ID="tvCustomList" runat ="server" Width ="430px" EnableDragAndDrop="True" OnNodeDrop ="tvCustomList_Handledrop">










  2. Kate
    Kate avatar
    1898 posts

    Posted 23 May 2013 Link to this post

    Hello Mona,

    I noticed that you also opened a support ticket related to the same issue. I will paste my answer of the ticket here as well so anyone interested in this scenario can review it:

    I tested the code that you describe and it is expected that when you have an UpdatePanel the controls placed in it do not perform a full post back. You could rather expect a call back when you attach a server side events to the controls in the UpdatePanel (which is the case with the code that you provided). Once I comment the UpdatePanle, however, the OnNodeDrop event fires as expected as demonstrated on this video.  

    Attached to this post you can also find my simplified runnable project that I used for testing purpose. 

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top