extjs - Adding rows to grid -
i trying add rows grid. i saw example in docs: onaddrouteclick: function(){ // create model instance var rec = new kitchensink.model.grid.plant({ buying_vendor_id: 12, country_code: '1', route: 0 }); this.getstore().insert(0, rec); this.cellediting.starteditbyposition({ row: 0, column: 0 }); } but cant seem make work in code. this grid: onbtnroutessearchclick: function(button, e, options){ var me = this; var v_url = 'getroutes.jsp?' + ext.urlencode({'route_id': routeid, 'route_country_code' : routecountrycode , 'route_vendor_id' : routevendorid}); var newtab = ext.create('ext.panel.panel', { id: 'routes_pannel', title: 'routes', autoscroll: true, layout: { type: 'fit' }, closable: true, dockeditems: [ { xtype: 'toolbar', ...