diff --git a/demo/ajax.htm b/demo/ajax.htm
index c2ce5b0..befe92a 100644
--- a/demo/ajax.htm
+++ b/demo/ajax.htm
@@ -56,14 +56,15 @@
- Sub Nav
+
+
- | ID |
+ ID |
Sender |
Received |
@@ -89,8 +90,10 @@
ajaxSettings: {
method: "GET"
},
+ rowCount: 5,
ajax: true,
- url: 'http://127.0.0.1:8080/demo/data.json',
+ keepSelection: true,
+ url: 'http://127.0.0.1:8080/data',
selection: true,
multiSelect: true
}).on('loaded.rs.jquery.bootgrid', function(){
@@ -101,6 +104,14 @@
}
})
});
+
+ $("#deselect").on("click", function() {
+ $("#grid").bootgrid("deselect");
+ });
+
+ $("#deselectAll").on("click", function() {
+ $("#grid").bootgrid("deselectAll");
+ });
});