Edit first pagination item

Edit first pagination item

anton12anton12 Posts: 2Questions: 1Answers: 0

I am using server Side to render a table. When using pagination, a problem arises: The first page is 0 index. Is it possible to somehow make the first page have index 1 (For use with server Side):

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,270Questions: 26Answers: 4,765

    Are you saying you want to load the second page of data or that you want to change the parameter sent to the server?

    Please provide more details of what you are trying to do.

    Kevin

  • anton12anton12 Posts: 2Questions: 1Answers: 0

    I want to change the parameter that is sent to the server. To make the first page 1, not 0

  • kthorngrenkthorngren Posts: 20,270Questions: 26Answers: 4,765
    edited September 2021 Answer ✓

    The Server Side Processing protocol docs explain the parameters sent to the server. There isn't a page parameter. There is a start parameter which indicates the first record to start with. That along with the length parameter provide the page details to the server script.

    You can manipulate any of these parameters using the ajax.data option as a function, see second example.

    Kevin

Sign In or Register to comment.