TreeListTemplateColumn inside RadNumericTextBox find

1 posts, 0 answers
  1. mohamed
    mohamed avatar
    311 posts
    Member since:
    Mar 2011

    Posted 05 Jan 2013 Link to this post


    ..aspx
    <telerik:TreeListTemplateColumn HeaderText="Quantity " HeaderStyle-Width="50px" DataField="EntQnty1"
                                    UniqueName="EntQnty">
                                    <ItemTemplate>
                                        <telerik:RadNumericTextBox MaxLength="5" ID="EntQnty5" Width="50px" runat="server">
                                        </telerik:RadNumericTextBox>
                                    </ItemTemplate>
                                </telerik:TreeListTemplateColumn>

    .cs

    protected void Submit_Click(object sender, EventArgs e)
            {
                //RadTreeListWork.ItemDataBound += new EventHandler<TreeListItemDataBoundEventArgs>(RadTreeListWork_ItemDataBound);           
                RadTreeListWork.ItemCreated += new EventHandler<TreeListItemCreatedEventArgs>(RadTreeListWork_ItemCreated);
                //Response.Redirect("AssignEmail.aspx");
            }

    i'm click the submit button i fire the RadTreeListWork_ItemCreated that's fired , i find like that but text value is not get ,
    it's come empty only
    protected void RadTreeListWork_ItemCreated(object sender, TreeListItemCreatedEventArgs e)
           {
               if (e.Item is TreeListDataItem)
               {
                   TreeListDataItem item = (TreeListDataItem)e.Item;
                   RadNumericTextBox qt = (RadNumericTextBox)item.FindControl("EntQnty5");
                   RadNumericTextBox Rte = (RadNumericTextBox)item.FindControl("BalQnty2");
     
     
                   RadNumericTextBox mohamed = item["EntQnty"].FindControl("EntQnty5") as RadNumericTextBox;
     
                   if (qt.Text != "" && Rte.Text != "")
                   {
                   }
               }
           }


    Thanks Advance,
    Mohamed.
Back to Top