formatter called twice for each row
Author: DemersMCreated Jan 7, 2015Updated Nov 2, 2021
if you are using an ajax loader such
$.ajax({
type: "GET",
url: "/basqui/layer/shapefile/attributesTable/loader/1/",
success: function(r) {
dataView.beginUpdate();
dataView.setItems(r);
dataView.setFilter(filter);
dataView.endUpdate();
},
});with those standard dataview events subscribed:
dataView.onRowCountChanged.subscribe(function (e, args) {
grid.updateRowCount();
grid.render();
});
dataView.onRowsChanged.subscribe(function (e, args) {
grid.invalidateRows(args.rows);
grid.render();
});each row are formatted twice ( You can see this by using a custom formatter for a column and console.log() in its function ).
Is this normal?
Source: mleibman/SlickGrid