Skip to content

Instantly share code, notes, and snippets.

@goofmint
Last active May 27, 2016 05:06
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/5c636a18e03ea7e057129e50453ef6dc to your computer and use it in GitHub Desktop.
Save goofmint/5c636a18e03ea7e057129e50453ef6dc to your computer and use it in GitHub Desktop.
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