Skip to content

Instantly share code, notes, and snippets.

@goofmint
Last active May 27, 2016
Embed
What would you like to do?
setData: function(data, dummyColNums) {
:
var dataSource = datagrid.createDataSource({
idProperty: 'id',
type: 'local',
param: data
});
// paramを再生成する
this._createDefaultParam(dummyColNums);
// FIXME (0,0)にグリッドをスクロール
this._gridController._viewController._vPos = 0;
this._gridController._viewController._hPos = 0;
this._gridController.activate(dataSource, this._param);
this._gridController.search();
this._triggerLengthChange();
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment