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
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
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
0
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
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