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

Radtreeview inside a user control

1 Answer 106 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Mona
Top achievements
Rank 1
Mona asked on 22 May 2013, 03:02 PM

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.
<tr>

 <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>

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

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

 </Tabs>

 </telerik:RadTabStrip>

 <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">

 <tr>

 <td>

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

 </td>

 <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" />

 </td>

 </tr>

 </table>

 <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">

 </telerik:RadTreeView>

 </telerik:RadPageView>

 </telerik:RadMultiPage>

 </div>

 </ContentTemplate>

 </asp:UpdatePanel>

 </td>

 </tr>

 

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 23 May 2013, 10:11 AM
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. 

Regards,
Kate
Telerik
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.
Tags
TreeView
Asked by
Mona
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or