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

radgrid open in edit mode at the of page load

1 Answer 183 Views
Grid
This is a migrated thread and some comments may be shown as answers.
puru
Top achievements
Rank 1
puru asked on 05 Sep 2008, 12:03 PM
Hi,
How to Radgrid open in edit mode at the of page load?
Thanks,
Puru

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Sep 2008, 07:02 AM
Hello Puru,
    Try out the following code to set the entire grid in EditMode when the page loads.
aspx:
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" AllowMultiRowEdit="true" OnPreRender="RadGrid1_PreRender"
</telerik:RadGrid  

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

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