DropDowns in pager template for page index/page size change

Thread is closed for posting
1 posts, 1 answers
  1. Answer
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 22 Apr 2008 Link to this post

    Requirements

    RadGrid for ASP .NET version

    RadControls for ASP .NET AJAX version

    RadGrid, RadAjax


    2008.1.415 and later

    .NET version

    NET 2.0 and later

    Visual Studio version

    2005 and later

    Programming language

    C#

    Browser support

    all supported by RadGrid for ASP .NET

    all browsers supported by RadControls for ASP .NET AJAX



    PROJECT DESCRIPTION

    The projects attached to this message demonstrate how to use MS DropDownLists/RadComboBoxes inside the pager template of RadGrid to switch the page index/change the page size for the control. Note that they are synchronized to work with the Next/Prev/First/Last buttons in the pager as well.

    In a nutshell:
    You need to intercept the ItemDataBound event of the grid to populate/select the proper item in the dropdowns residing inside the pager. Paging command from the image buttons is also trapped inside the ItemCommand handler to change the selected indices.
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.