Extjs: Selecting row(s) in grid once rendered










var grid = new Ext.grid.GridPanel({
idx : [1,2,3],
viewConfig: {
afterRender: function(){
this.constructor.prototype.afterRender.call(this);
this.grid.getSelectionModel().selectRows(this.initialConfig.idx);
}
}
});
See Also: http://www.extjs.com/forum/showthread.php?p=223542#post223542


No comments:

Post a Comment