Mercurial > lada > lada-client
comparison app/view/widget/DynamicGrid.js @ 1051:981339d774b8
merged stammdatengrids to default.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 01 Mar 2016 14:12:39 +0100 |
parents | 94a6b5415d73 1df6b6210b42 |
children | 2a5d42045c63 |
comparison
equal
deleted
inserted
replaced
1048:eacf25f071c0 | 1051:981339d774b8 |
---|---|
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 |