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

Put all items in edit mode without additional rebind does not work with paging enabled

1 Answer 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Imran
Top achievements
Rank 1
Imran asked on 06 Aug 2010, 07:12 PM
The code specified at Put all items in edit mode without additional rebind.

Does not work if the paging is enabled.

Any work arounds please.

Thanks
Imran

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 09 Aug 2010, 08:04 AM
Hello Imran,

Try the following code snippet in PreRender event to achieve this.

C#:
protected void RadGrid1_PreRender(object sender, EventArgs e)
  {
      for (int i = 0; i < RadGrid1.PageSize; i++)
      {
          RadGrid1.EditIndexes.Add(i);
      }
      RadGrid1.Rebind();
  }

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