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

TreeListTemplateColumn inside RadNumericTextBox find

0 Answers 73 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
mohamed
Top achievements
Rank 1
mohamed asked on 05 Jan 2013, 09:12 AM

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

No answers yet. Maybe you can help?

Tags
TreeList
Asked by
mohamed
Top achievements
Rank 1
Share this question
or