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

How to position a paged grid on the last page (server-side)

4 Answers 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Henrik Brinch
Top achievements
Rank 2
Henrik Brinch asked on 09 May 2008, 07:21 PM
Is it possible to make the grid jump to the last page (grid is using paging), during a postback (server-side) ... or through a combination of sever-side initiated client-site code?

4 Answers, 1 is accepted

Sort by
0
Vladimir
Top achievements
Rank 1
answered on 10 May 2008, 05:27 AM
0
Henrik Brinch
Top achievements
Rank 2
answered on 10 May 2008, 08:36 PM
Hi Vlad,

I'm afraid that doesn't do the trick :(

I have a button, on button click (postback) I add a row to the table (database) that is bound to the grid.  Then adding the:

grid.CurrentPageIndex = grid.PageCount-1;

doesn't make the page change at all...

(the grid resides within an RadAjaxPanel, however the button that initiates the postback is outside that panel ... I don't believe this has anything to do with my problem though).

- Henrik
0
Shinu
Top achievements
Rank 2
answered on 12 May 2008, 05:17 AM
Hi Henrik,

Go through the following help document link.
Frequently Asked Questions


0
Konstantin Petkov
Telerik team
answered on 12 May 2008, 05:43 AM
Hello Henrik,

The RadAjaxPanel surrounding the Grid has nothing with the update from an outside button. Have you tried calling Grid.Rebind() after changing the CurrentPageIndex?

Kind regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Henrik Brinch
Top achievements
Rank 2
Answers by
Vladimir
Top achievements
Rank 1
Henrik Brinch
Top achievements
Rank 2
Shinu
Top achievements
Rank 2
Konstantin Petkov
Telerik team
Share this question
or