【发布时间】:2016-09-20 09:41:21
【问题描述】:
<table id="table-manage-data-import-conflicts" data-classes="table table-hover table-condensed" data-cache="false" data-pagination="true" data-page-size="50" data-search="true" data-click-to-select="true" data-maintain-selected="true">
<thead>
<tr>
<th data-field="id" data-visible="false"></th>
<th data-field="recommendationPlacements" data-visible="false"></th>
<th data-field="rules" data-visible="false"></th>
<th data-field="isSelected" data-checkbox="true" data-formatter="BusinessPortal.Manage.DataImportConflicts.formatTableCheckBoxColumn"></th>
<th data-field="name" data-switchable="false" data-sortable="true">Name</th>
<th data-field="description" data-switchable="false" data-formatter="BusinessPortal.Manage.DataImportConflicts.formatTableDescriptionColumn" data-events="BusinessPortal.Manage.DataImportConflicts.handleTableDescriptionColumnEvents">Description</th>
</tr>
</thead>
</table>
我正在使用引导程序版本 1.9.1。我想用分页保留选中的项目
data-maintain-selected="true"。
但它不会起作用。有人可以帮忙吗?
【问题讨论】:
-
请在 jsfiddle 中创建示例。
-
我发现了问题。这是因为复选框列中的数据格式化程序。当复选框列 data-maintain-selected 中有格式化程序不起作用时。有人可以给我解决方案吗
标签: javascript playframework bootstrap-table