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

5 posts, 0 answers
  1. Henrik Brinch
    Henrik Brinch avatar
    100 posts
    Member since:
    Aug 2004

    Posted 09 May 2008 Link to this post

    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?
  2. UI for ASP.NET Ajax is Ready for VS 2017
  3. Henrik Brinch
    Henrik Brinch avatar
    100 posts
    Member since:
    Aug 2004

    Posted 10 May 2008 Link to this post

    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
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 12 May 2008 Link to this post

    Hi Henrik,

    Go through the following help document link.
    Frequently Asked Questions


  5. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 12 May 2008 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017