Bootstrap-table: How to change page size

Created on 25 Jun 2015  路  6Comments  路  Source: wenzhixin/bootstrap-table

Hi,
How can I change the page size of my bootstrap table with JavaScript? I tried:

$('#listing-accesses').bootstrapTable('refreshOptions', {
    pageSize: 25
});

But it doesn't work and I don't have any error.

help-wanted

Most helpful comment

All 6 comments

Use the selectPage method.. : See this: http://bootstrap-table.wenzhixin.net.cn/documentation/#methods

Thank you djhvscf, but it's not the page I want to change, it's the amount of rows showed per page that I want to adjust. (10, 25, 50, 100)

Remember that you have to set data-pagination="true"

If this is not the solution, reopen the issue!

This might too late from the last comment, however adding , as a table attr should sort it
data-page-size="25"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alejandrofm picture alejandrofm  路  4Comments

peter064226 picture peter064226  路  3Comments

iamthestreets picture iamthestreets  路  5Comments

Sivalingaamorthy picture Sivalingaamorthy  路  5Comments

startovernow picture startovernow  路  4Comments