[Commits] r194 - sandbox/opengeo/drake/trunk/apps/drake
commits at geoext.org
commits at geoext.org
Wed Feb 18 19:01:49 CET 2009
Author: tcoulter
Date: 2009-02-18 19:01:49 +0100 (Wed, 18 Feb 2009)
New Revision: 194
Modified:
sandbox/opengeo/drake/trunk/apps/drake/index.html
Log:
Fixing ticket #42 on projects.opengeo.org/geoext
Modified: sandbox/opengeo/drake/trunk/apps/drake/index.html
===================================================================
--- sandbox/opengeo/drake/trunk/apps/drake/index.html 2009-02-18 17:51:00 UTC (rev 193)
+++ sandbox/opengeo/drake/trunk/apps/drake/index.html 2009-02-18 18:01:49 UTC (rev 194)
@@ -73,21 +73,7 @@
GeoExt.Drake = {
filterBuilder: null,
grid: null,
- proxy: null,
-
- gridConfig: {
- stripeRows: true,
- height:230,
- region: "south",
- collapsible: true,
- collapseMode: "mini",
- loadMask: {
- msg: "Loading features...",
- store: this.featureStore
- }
- },
-
filter: null,
store: null,
fields: null,
@@ -243,10 +229,6 @@
displayMsg: 'Displaying features {0} - {1} of {2}',
emptyMsg: 'No features to display'
});
-
- this.gridConfig.store= this.featureStore;
- this.gridConfig.title= "Feature Query Results"; // this.getFullType();
- this.gridConfig.bbar= this.pagingBar;
},
initMap: function() {
@@ -301,20 +283,28 @@
zoom: 4,
center: new OpenLayers.LonLat(-99.54204174999998,38.13064787500001)
});
-
- this.gridConfig.selModel = new GeoExt.grid.FeatureSelectionModel({
- layer: this.wfsStoreLayer
- });
},
initFeatureGrid: function() {
- var gc = Ext.apply(
- {
- columns: []
- }, this.gridConfig
- );
- this.grid = new Ext.grid.GridPanel(gc);
+ this.grid = new Ext.grid.GridPanel({
+ title: "Feature Query Results",
+ stripeRows: true,
+ height:230,
+ region: "south",
+ collapsible: true,
+ collapseMode: "mini",
+ loadMask: {
+ msg: "Loading features...",
+ store: this.featureStore
+ },
+ columns: [],
+ store: this.featureStore,
+ selModel: new GeoExt.grid.FeatureSelectionModel({
+ layer: this.wfsStoreLayer
+ }),
+ bbar: this.pagingBar
+ });
this.grid.on("rowdblclick", function(grid, index, evt) {
var record = grid.getSelectionModel().getSelected();
More information about the Commits
mailing list