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

To edit Radgrid in loading time

2 Answers 27 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Angella
Top achievements
Rank 1
Angella asked on 28 Sep 2012, 03:29 AM
Hi,

My radgrid isn't  editable when it loads! I want it to be editable. Please help.





2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 28 Sep 2012, 03:36 AM
Hi,

Try the following code snippet in the PreRender event of the Grid to set the entire Grid in edit mode in page load and please
set AllowMultiRowEdit to true.

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

Thanks,
Shinu.
0
Angella
Top achievements
Rank 1
answered on 19 Oct 2012, 04:21 AM
Thank you.
Tags
Grid
Asked by
Angella
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Angella
Top achievements
Rank 1
Share this question
or