I implemented a table using bootstrap-table
in my project. Everything seems to be working fine except for the scroll bar within the tbody
.
For some reason, the scroll bar is not appearing. Can anyone point out what I might be missing? I believe that if the scroll bar is visible, then the fixed-header
feature for the table should also function correctly.
<table id="tblMain" class="table table-bordered table-hover" data-show-refresh="false" data-click-to-select="false" data-single-select="true" data-show-toggle="false" data-show-columns="false" data-cache="false" data-page-number="@Model.CommonVariable" data-url='@Url.Action("Index", "Home")' data-side-pagination="server" data-pagination="true" data-search="false" data-query-params="queryParams" data-response-handler="respHandler">
<thead class="table-head">
<tr>
<th data-field="id" data-formatter="SomeFunction">Item ID</th>
<th data-field="name" data-formatter="SomeFunction2">Item Name</th>
<th data-field="price" data-formatter="SomeFunction3">Item Price</th>
</tr>
</thead>
</table>