rstaib / jquery-bootgrid

Nice, sleek and intuitive. A grid control especially designed for bootstrap.
http://www.jquery-bootgrid.com
MIT License
972 stars 364 forks source link

enable to make row selectable when ajax=true #349

Open Bchir opened 7 years ago

Bchir commented 7 years ago
<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")",.....]`

the select checkbox isn't appearing

ShaydullinR commented 6 years ago

Try this: <td data-column-id="Nom" data-identifier="true">Nom du Produit