This is a migrated thread and some comments may be shown as answers.
acsess the textbox
1 Answer 14 Views
This is a migrated thread and some comments may be shown as answers.
beeta one
Top achievements
Rank 1
beeta one asked on 19 Oct 2012, 08:38 AM
hii,
how  can i acsess the textbox inside templatecolumn in server side

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 19 Oct 2012, 08:57 AM
Hi Hash,

Try the following code snippet to achieve your scenario.

ASPX:
<telerik:TreeListTemplateColumn UniqueName="ColumnUniqueName">
   <ItemTemplate>
      <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
   </ItemTemplate>
</telerik:TreeListTemplateColumn>

C#:
protected void RadTreeList1_ItemCreated(object sender, TreeListItemCreatedEventArgs e)
{
    if (e.Item is TreeListDataItem)
    {
        TreeListDataItem item = e.Item as TreeListDataItem;
        TextBox txt = (TextBox)item.FindControl("TextBox1");
    }
}

Hope this helps.

Regards,
Princy.
Asked by
beeta one
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or