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

How to persist state of radgrid paging

1 Answer 202 Views
Grid
This is a migrated thread and some comments may be shown as answers.
amol
Top achievements
Rank 1
amol asked on 21 Aug 2008, 12:23 PM
Hello Everybody,

                        i am binding 50 records to grid, page size of grid is 10.
                        when i am on second or third page, and edit record on that page , opening new page for edit. After editing record i want to came back on         same page. How can i persist it ? please help...
 
Thanks in advance...
  Amol

     

1 Answer, 1 is accepted

Sort by
0
Leon
Top achievements
Rank 1
answered on 21 Aug 2008, 07:56 PM
Amol,

That's an interesting question. I would save the current page index in the Session on paging (PageIndexChanged event) and reset it when the item is updated (ItemUpdated event). You may need to rebind the Grid along with setting the new page index.

Hope this helps!
~Leon
Tags
Grid
Asked by
amol
Top achievements
Rank 1
Answers by
Leon
Top achievements
Rank 1
Share this question
or