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

Place rows into edit mode

1 Answer 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Antony
Top achievements
Rank 1
Antony asked on 02 Mar 2009, 08:43 AM
Hi everyone,

I found the following code to place rows in the grid into edit mode without requiring a rebind().

 

for (int i = 0; i < RadGrid1.PageSize; i++)

 

{

    RadGrid1.EditIndexes.Add(i);

}

Am I missing something or will this only work for the first page of data?
How do I determine what the current Page Index is during Page_Load, the CurrentPageIndex property seems to always be 0?

Many thanks
Antony

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 04 Mar 2009, 01:46 PM
Hello Antony,

In pageLoad, there will be no data as to which the current page index is. You can use a standard way of rebinding the control to put the items in edit mode, as putting the code in PreRender (although this requires an additional rebind), allows access access to this additional data.

Greetings,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Antony
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or