Search code examples
bootstrap-table

How do I show all rows?


I don't want pagination... or a scrollable table. I don't want to specify a height but if you don't it default to something.

I just want my regular old table with sorting options.

(I'm using bootstrap-table)


Solution

  • You can only set the sortable column option and don't set the height option:

    <table data-toggle="table"
           data-url="your-json-url">
        <thead>
        <tr>
            <th data-field="id" data-sortable="true">ID</th>
            <th data-field="name" data-sortable="true">Name</th>
            <th data-field="price" data-sortable="true">Price</th>
        </tr>
        </thead>
    </table>
    

    http://jsfiddle.net/wenyi/e3nk137y/3500/