Jump to 1st page

Jump to 1st page

IsunIsun Posts: 3Questions: 0Answers: 0
edited October 2010 in General
Instead of the 'search' box, I implment my filter myself using 'select' element outside of the datatable.
After doing filter, I want it to jump to the 1st page automatically, but not stay as it is.
How should I do ?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    The API function fnPageChange can be used to get you back to the first page: http://www.datatables.net/api#fnPageChange

    Allan
  • IsunIsun Posts: 3Questions: 0Answers: 0
    Great! It does work!

    Just now, I found the following code works, too:
    [code]
    oTable.fnDraw();
    oTable.fnDisplayStart(0);
    [/code]
This discussion has been closed.