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

Problem with JSON - AJAX #342

Open Manupucelano opened 7 years ago

Manupucelano commented 7 years ago

I create a json that response in a url: The json format is the same: {"rows":[{"id":1,"name":"Raul S.A."},{"id":3,"name":"Fontaneria Sin Obras Cyl"},{"id":2,"name":"Fontaneria"}]} var grid = $("#grid").bootgrid( { ajax: true,

url: "/api/data/basic"
}

});

When you order the column, or search in the rows, the json reload. That it is misconfigured, because it recharges when it would have to filter?

<table id="grid" class="table table-condensed table-hover table-striped">
                <thead>
                    <tr>
                        <th data-column-id="id" data-identifier="true" data-type="numeric" data-align="right" data-width="10%">ID</th>
                        <th data-column-id="name" data-order="asc" data-align="center" data-header-align="center" data-width="30%">Nombre</th>
                    </tr>
                </thead>
                <tbody id='tbody'>
                </tbody>
            </table>