Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
330
Findcontrol
posted

Hi,

I have webdatatree like the below with node template.

<ig:WebDataTree ID="WebDataTreeSample" runat="server" DataSourceID="XmlDataSource1"

 Height="100%" Width="100%" Style="float: left" OnNodeBound="WebDataTreeSample_NodeBound"  EnableHotTracking="True" OnNodeDropped="WebDataTreeSample_NodeDropped">

 

<ClientEvents NodeClick="onNodeClicked" />

 

<DataBindings>

 

<ig:DataTreeNodeBinding DataMember="Group" TextField="Name" ValueField="Name" /> <ig:DataTreeNodeBinding DataMember="Feed" TextField="Name" ValueField="Name" /> </DataBindings>

 <Templates>

 <ig:ItemTemplate>

 <Template>

<asp:Label ID="L" runat="server"></asp:Label>

</Template>

</ig:ItemTemplate>

</Templates>

</ig:WebDataTree>

 

<ClientEvents NodeClick="onNodeClicked" />

 

<DataBindings>

 

<ig:DataTreeNodeBinding DataMember="Group" TextField="Name" ValueField="Name" /> <ig:DataTreeNodeBinding DataMember="Feed" TextField="Name" ValueField="Name" /> </DataBindings>

 <Templates>

 <ig:ItemTemplate>

 <Template>

<asp:Label ID="L" runat="server"></asp:Label>

</Template>

</ig:ItemTemplate>

</Templates>

</ig:WebDataTree>

On Node_dataBound event, I am trying to find the label 'l' like the below:

Label l = e.Node.FindControl("L").

I am not able to find control, the above code is not working. How to find control which is in Template of WebDataTree?

Thanks

Parents
No Data
Reply Children
No Data