UNPKG

extjs-gpl

Version:

GPL licensed version of Sencha Ext JS

21 lines (15 loc) 486 B
Ext.define('KitchenSink.view.direct.GridController', { extend: 'KitchenSink.view.direct.DirectVC', alias: 'controller.directgrid', finishInit: function() { var store = this.getView().getStore(); store.load(); }, onTableChange: function(combo, newValue) { var store = this.getView().getStore(); store.getProxy().setMetadata({ table: newValue }); store.load(); } });