Using jQuery Bootgrid Methods

How exactly are you going to use the methods for jQuery BootGrid?

I tried:

$("#presentation-listing-api").bootgrid('remove', [uid]);

Doesn't seem to work?

It is not very useful that the documentation is not finished yet.

+4
source share
3 answers

It should be noted that from version [ 1.3.1 ] the delete function is not supported when using the ajax option. There is a note in the source that reads

[todo: implement ajax DELETE]

An alternative might be something like this:

$('[data-row-id="'+uid+'"]').remove();
+7
source

The way to do this was pretty confusing, but I figured it out ...

id :

<th data-column-id="id" data-identifier="true" data-type="numeric">ID</th>

, , !!!

remove :

rows[0] = uid;
$("#presentation-listing-api").bootgrid('remove', rows);

, , Commands , , , .

:
http://jsfiddle.net/Mrbaseball34/zszc8zL6/

+3

Make sure you have the id variable as an integer in the associated object that you use to populate the table. With parseInt () it even worked with ajax: false.

+1
source

All Articles