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

MAtef

1 Answer 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mohamed
Top achievements
Rank 1
mohamed asked on 26 Oct 2008, 12:03 PM
Hi all,
i need to access form edit for Radgrid before making edit
or befor edit form appears.
also i need to understand why js doesn't work with radgrid.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Oct 2008, 05:00 AM
Hi,

You can access the edit form item in the ItemDataBound event as shown below.

CS:
  protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
    { 
        if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode)) 
        { 
            GridEditFormItem editItem = (GridEditFormItem)e.Item; 
            TextBox txtbx = (TextBox)editItem["columnUniqueName"].Controls[0]; 
        } 
    } 


Thanks
Shinu
Tags
Grid
Asked by
mohamed
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or