bootgrid jquery select 行
bootgrid jquery select row
我在我的 asp.net mvc 中使用 Bootgrid jquery,我正在尝试使行可选,我尝试了我在网上找到的方法,但它仍然不起作用,它显示没有选择功能
<table class="table table-condensed table-hover table-striped col-md-12" id="tbl-Produits">
<thead>
<tr>
<td data-column-id="Nom">Nom du Produit</td>
<td data-column-id="Type"> Type du Produit</td>
<td data-column-id="LastVersion">Dernière version </td>
</tr>
</thead>
<tbody></tbody>
</table>
<script type="text/javascript">
$(document).ready(function () {
var ProduitsGrid = $("#tbl-Produits").bootgrid({
ajax: true,
selection: true,
multiSelect: false,
rowSelect: true,
url: "@Url.Action("getall")",.....
您需要为一列设置数据标识符="true"。
正如文档所说:
Ensure that the data attribute data-identifier="true" is set on one
column header.
我在我的 asp.net mvc 中使用 Bootgrid jquery,我正在尝试使行可选,我尝试了我在网上找到的方法,但它仍然不起作用,它显示没有选择功能
<table class="table table-condensed table-hover table-striped col-md-12" id="tbl-Produits">
<thead>
<tr>
<td data-column-id="Nom">Nom du Produit</td>
<td data-column-id="Type"> Type du Produit</td>
<td data-column-id="LastVersion">Dernière version </td>
</tr>
</thead>
<tbody></tbody>
</table>
<script type="text/javascript">
$(document).ready(function () {
var ProduitsGrid = $("#tbl-Produits").bootgrid({
ajax: true,
selection: true,
multiSelect: false,
rowSelect: true,
url: "@Url.Action("getall")",.....
您需要为一列设置数据标识符="true"。 正如文档所说:
Ensure that the data attribute data-identifier="true" is set on one column header.