I have come accross those grids and was wondering if they were any new ones (or recommended ones). Same about stores, I believe backbone as collection for instance. I'm looking for something similar and simple like Dojo implements it.
Basically, I want to have a JsonStore and pass this store to a grid (populated onDemand, so while I scroll ajax call are made).
In dojo, it looks something like this:
define([
"dojo/_base/declare",
"dgrid/OnDemandGrid",
"dgrid/Keyboard",
"dgrid/Selection",
"dgrid/extensions/ColumnHider",
"dgrid/editor",
"dojo/store/Memory",
"dojo/store/JsonRest",
"dojo/store/Cache",
"dojo/store/Observable"
], function(
declare,
Grid,
Keyboard,
Selection,
Hider,
editor,
Memory,
JsonRest,
Cache,
Observable
){
var contentStore = Observable(Cache(JsonRest({
target:/* my url */,
idProperty: "id",
}), Memory()));
return declare([Grid, Keyboard, Selection, Hider], {
store: contentStore,
columns: {
/* labels/columns names */
},
loadingMessage: 'Loading data...',
noDataMessage: 'No data found',
getBeforePut: false
});
});