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

Insert into first position

1 Answer 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
eboen
Top achievements
Rank 2
eboen asked on 29 Sep 2012, 06:39 PM
Hi,

I have a grid with a lot of data.  I notice that when I add a new row it load the grid and presents the editable section at the very end of the grid pagination.  This increases the amount of time required to add a record.  Whenever we are adding a record we are doing so on the first page so it is most desirable to have the insert happen in the 1st position instead of having to reload the grid and go to the end.  Hope that make sense and how can I accomplish this.

Thanks

Eric

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 30 Sep 2012, 04:11 PM
Hello,

Please try set below property in your RadGrid.
// set insert item in First page
RadGrid1.MasterTableView.InsertItemPageIndexAction =GridInsertItemPageIndexAction.ShowItemOnFirstPage;
// set insert item in Current page
RadGrid1.MasterTableView.InsertItemPageIndexAction =GridInsertItemPageIndexAction.ShowItemOnCurrentPage;
// set insert item in Last page  // By default this property set in RadGrid
RadGrid1.MasterTableView.InsertItemPageIndexAction =GridInsertItemPageIndexAction.ShowItemOnLastPage;


Thanks,
Jayesh Goyani
Tags
Grid
Asked by
eboen
Top achievements
Rank 2
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or