acsess the textbox

2 posts, 0 answers
  1. beeta one
    beeta one avatar
    63 posts
    Member since:
    Aug 2012

    Posted 19 Oct 2012 Link to this post

    how  can i acsess the textbox inside templatecolumn in server side
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 19 Oct 2012 Link to this post

    Hi Hash,

    Try the following code snippet to achieve your scenario.

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

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top