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

Paging to Selected Row

2 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 14 Jul 2011, 01:24 AM
I have a multi-page radgrid that allows the user to select a singe record.  I persist that selection in a session variable while they go do other things on other pages.

Is there a way for me to load the grid (when  they return) and have it load the grid-page that contains their selected row?  I assume I can cause it to be selected during a server-side event but am not sure how I can control which page the grid shows or be sure that it is going to contain the saved selected item.

Advice?

Thanks.

Mike

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 Jul 2011, 06:12 AM
Hello Mike,

Check out the following help documentation to achieve your scenario.
Persisting the selected rows server-side on sorting/paging/filtering/grouping.

Thanks,
Shinu.
0
Mike
Top achievements
Rank 1
answered on 14 Jul 2011, 09:33 PM
Thanks, Shinu.

I am able to get a row to be highlighted as selected after storing the value in a session variable and using the grid's PreRender event to select it the next time I load the grid. 

What I still can't seem to do is get the grid to automatically jump to the page where the selected item is.  I am only allowing a single selected item so if there is a way to figure out what page it would fall on, I could set that as the current page (based on some kind of rowindex and pagesize properties).   Is this possible?

Mike
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Mike
Top achievements
Rank 1
Share this question
or