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

Avoid new record on RadGrid move to the end of grid

3 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Edson
Top achievements
Rank 1
Edson asked on 10 Nov 2011, 05:32 PM
Hi,
I have a project using a RadGrid connected into a DataSourceObject and using paging to select only the necessary
quantity of records that I need to show on a web page. Everything is working fine, except by one situation that I would
like to know if somebody can help me to solve.

When I press the Insert button on grid , it opens a new empty row to edit the fields values, but the page is moved
to the last page of the grid, generating a call to the select method of objectDataSource with the parameters of
startRowIndex and maximumRows to get data from the last records from a table.

How is possible to avoid this behavior, keep on the same page that was been shown before the insert button be pressed ?

Thanks,
Edson

3 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 10 Nov 2011, 05:40 PM
Hello,

<MasterTableView InsertItemPageIndexAction="ShowItemOnCurrentPage"  >


Thanks,
Jayesh Goyani
0
Edson
Top achievements
Rank 1
answered on 10 Nov 2011, 07:58 PM
Mr.Goyani, Thank you !!!
So simple, when You know where to do the modification, isn't ?
0
Jayesh Goyani
Top achievements
Rank 2
answered on 11 Nov 2011, 08:15 AM
Hello,

<telerik:RadGrid ID="RadGrid1" runat="server">
          <MasterTableView InsertItemPageIndexAction="ShowItemOnCurrentPage"></MasterTableView>
      </telerik:RadGrid>

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