Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
345
Opening a paged grid to the page that holds a specific value.
posted

I'd like to open a grid at a specified value.

 I see this task as composed of two operations:

1) Determine the page number of the page that contains a specified value.

2) Open the grid to that page.

Does anyone have any idea on whether or not this is doable on the server side, or whether it is easy to do with client side calls, or whether I should start looking into a custom client side scripting library that seizes control of the grid, pages through it, and searches the output?

Parents
No Data
Reply
  • 7694
    posted

     Hello,
    You can use the property  CurrentPageIndex and PageSize of DisplayLayout tag and set suitable value and manipulate paging of grid. Please take a look at the code below:

    ASPX
    <Pager AllowPaging="true" PageSize="4"

    C#
    UltraWebGrid1.DisplayLayout.Pager.AllowPaging = true;
            UltraWebGrid1.DisplayLayout.Pager.PageSize = 3;
            UltraWebGrid1.DisplayLayout.Pager.CurrentPageIndex = 3;

    Hope this helps.

Children
No Data