Thursday, March 14, 2013

Find Control Value on RadGrid ItemCommand

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)  
    {  
        if (e.CommandName == "some_command")  
        {  
            GridEditFormItem editform = (GridEditFormItem)((Telerik.Web.UI.GridDataItem)(e.Item)).EditFormItem;  
            TextBox txtbx = (TextBox)editform.FindControl("MyTextbox");  
            string strtxt = txtbx.Text;  
        }  
    }  

No comments:

Post a Comment