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

How to load radgrid positioned on row x of y?

1 Answer 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Clyde
Top achievements
Rank 1
Clyde asked on 06 Aug 2008, 09:56 PM
Struggling to find how to do this, so any help would be appreciated.

I need to have a Radgrid positioned on a specific row when accessed. This could be a row that is 5 pages from the start.

The application shows a gridview, the user scrolls to the page where he finds the record he wants to edit, goes through the updating of that record on a different page, returns to the gridview to edit the next record but on the reload/rebind, the grid is back at the beginning.

I need to know how I can tell the RadGrid to return to the page the previous row edit was performed on. I'm open to ideas on how to do this. The Edit is actually another page being called and not the Edit Event. I would be willing to pass in a parameter if I could just figure out how to jump to that row and have the RadGrid start displaying there. The user should have the ability to page back and forth from there, I am not looking to start the RadGrid from that row, just move the position of the display to that row/page.

Thanks in advance for you help and assistance.

Clyde

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 11 Aug 2008, 06:31 AM
Hello Clyde,

Basically, such a functionality would require re-querying the datasource, to determine the location of the item, and then navigating to it.
Attached to this message, is a sample application, which performs a search in a hierarchy. After a record is located, the focus is set to it, and the control scrolls to the item.
I hope this helps.

Sincerely yours,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Clyde
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or