Created
August 23, 2016 11:27
-
-
Save goofmint/bac643832d5f9fa439146ca801ad4637 to your computer and use it in GitHub Desktop.
7.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__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