Added new param for updateCell method to avoid table reinitialization
@@ -161,6 +161,8 @@ The calling method syntax: `$('#table').bootstrapTable('method', parameter);`.
index: the row index. <br>
field: the field name.<br>
value: the new field value.
+ <br>
+ To disable table re-initialization you can set <code>{reinit: false}</code>
</td>
</tr>
<tr>
@@ -1775,7 +1775,7 @@
BootstrapTable.prototype.initServer = function (silent, query) {
var that = this,
data = {},
- params = {
+ params = {
searchText: this.searchText,
sortName: this.options.sortName,
sortOrder: this.options.sortOrder
@@ -2403,6 +2403,10 @@
return;
}
this.data[params.index][params.field] = params.value;
+
+ if (params.reinit === false) {
+ return;
+ }
this.initSort();
this.initBody(true);
};