Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created August 23, 2016 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/bac643832d5f9fa439146ca801ad4637 to your computer and use it in GitHub Desktop.
Save goofmint/bac643832d5f9fa439146ca801ad4637 to your computer and use it in GitHub Desktop.
7.md
__ready: function() {
// サンプルデータ生成
var ary = [];
for (var i = 1; i < 1000; i++) {
ary.push({
id: i.toString(),
name: "User #" + i,
position: "Position " + i
});
};
var dataSource = datagrid.createDataSource({
idProperty: 'id',
type: 'local',
param: ary
});
//データグリッド初期化
this._gridController.activate(dataSource, initParam);
datagrid.util.delay(1000, this.own(function() {
this._gridController.search({});
}));
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment