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

Edit all rows

1 Answer 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 26 Aug 2008, 12:13 AM
Is there any way to make ALL rows of a radGrid editiable WITHOUT having to click on an "edit" link?  Any code examples around? 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 26 Aug 2008, 04:43 AM
Hello Derek,

You can set the all the rows to EditMode as shown in the code below.
aspx:
<telerik:RadGrid ID="RadGrid1"  AllowMultiRowEdit="true"  > 
   ..... 

cs:
protected void RadGrid1_PreRender(object sender, EventArgs e) 
    { 
        foreach (GridDataItem item in RadGrid1.MasterTableView.Items) 
        { 
           item.Edit = true;                        
        } 
        RadGrid1.Rebind(); 
    } 

Princy.
Tags
Grid
Asked by
Derek
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or