≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
Jump to 1st page
Jump to 1st page
Isun
Posts: 3
Questions: 0
Answers: 0
October 2010
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
allan
Posts: 65,821
Questions: 1
Answers: 10,951
Site admin
October 2010
The API function
fnPageChange
can be used to get you back to the first page: http://www.datatables.net/api#fnPageChange
Allan
Isun
Posts: 3
Questions: 0
Answers: 0
October 2010
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.
Replies
Allan
Just now, I found the following code works, too:
[code]
oTable.fnDraw();
oTable.fnDisplayStart(0);
[/code]