Using last version of 6pac/slickgrid 5.15.1, with slick.remotemodel.js
calling grid.autosizeColumns() in dataloaded model event
model.onDataLoaded.subscribe(function(e, args) {
for (var i = args.from; i <= args.to; ++i) {
grid.invalidateRow(i);
}
grid.updateRowCount();
grid.render();
grid.autosizeColumns();
});
results a
Uncaught TypeError: this.getDataItem(...) is undefined
getRowVal slick.grid.ts:2679
getColContentSize slick.grid.ts:2745
getColAutosizeWidth slick.grid.ts:2608
internalAutosizeColumns slick.grid.ts:2434
autosizeColumns slick.grid.ts:2386
perhaps the wrong place where to call grid.autosizeColumns();? Thanks in advance
Using last version of 6pac/slickgrid 5.15.1, with slick.remotemodel.js
calling grid.autosizeColumns() in dataloaded model event
model.onDataLoaded.subscribe(function(e, args) {
for (var i = args.from; i <= args.to; ++i) {
grid.invalidateRow(i);
}
grid.updateRowCount();
grid.render();
grid.autosizeColumns();
});
results a
Uncaught TypeError: this.getDataItem(...) is undefined
getRowVal slick.grid.ts:2679
getColContentSize slick.grid.ts:2745
getColAutosizeWidth slick.grid.ts:2608
internalAutosizeColumns slick.grid.ts:2434
autosizeColumns slick.grid.ts:2386
perhaps the wrong place where to call grid.autosizeColumns();? Thanks in advance
Share asked yesterday Sadri LassouedSadri Lassoued 587 bronze badges 01 Answer
Reset to default 0fixed in the model by synchronising data length in ajax response
success: function(response, status, jqXHR)
{
var from = jqXHR.fromPage * PAGE_SIZE;
var count = response.d.nodes.length; data.length = data.length + count;// instead of the total data response.d.totalNodes;
//etc..
}