Mercurial > lada > lada-client
comparison app/view/widget/DynamicGrid.js @ 1021:1df6b6210b42 stammdatengrids
WIP First Version of a New Window/Panel combination to edit Ortszuordnungen and Orte
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 04 Feb 2016 16:31:46 +0100 |
parents | 52b02b0225e8 |
children | 981339d774b8 |
comparison
equal
deleted
inserted
replaced
1014:e9e974d31924 | 1021:1df6b6210b42 |
---|---|
33 * This sets the Store of the DynamicGrid | 33 * This sets the Store of the DynamicGrid |
34 */ | 34 */ |
35 setStore: function(store){ | 35 setStore: function(store){ |
36 var i18n = Lada.getApplication().bundle; | 36 var i18n = Lada.getApplication().bundle; |
37 | 37 |
38 this.removeDocked(Ext.getCmp('ptbar'), true); | |
39 this.reconfigure(store); | 38 this.reconfigure(store); |
39 var ptbar = this.down('pagingtoolbar'); | |
40 if (ptbar) { | |
41 this.removeDocked(ptbar); | |
42 } | |
43 | |
40 this.addDocked([{ | 44 this.addDocked([{ |
41 xtype: 'pagingtoolbar', | 45 xtype: 'pagingtoolbar', |
42 id: 'ptbar', | |
43 dock: 'bottom', | 46 dock: 'bottom', |
44 store: store, | 47 store: store, |
45 displayInfo: true | 48 displayInfo: true |
46 }]); | 49 }]); |
47 | 50 |