[Commits] r1964 - sandbox/mapgears/geoext.ux/ux/WMSLayerAdder/lib/GeoExt.ux/widgets
commits at geoext.org
commits at geoext.org
Mon Mar 15 20:18:27 CET 2010
Author: adube
Date: 2010-03-15 20:18:27 +0100 (Mon, 15 Mar 2010)
New Revision: 1964
Modified:
sandbox/mapgears/geoext.ux/ux/WMSLayerAdder/lib/GeoExt.ux/widgets/WMSLayerAdder.js
Log:
wmslayeradder - row selectionction copy to form
Modified: sandbox/mapgears/geoext.ux/ux/WMSLayerAdder/lib/GeoExt.ux/widgets/WMSLayerAdder.js
===================================================================
--- sandbox/mapgears/geoext.ux/ux/WMSLayerAdder/lib/GeoExt.ux/widgets/WMSLayerAdder.js 2010-03-15 18:50:27 UTC (rev 1963)
+++ sandbox/mapgears/geoext.ux/ux/WMSLayerAdder/lib/GeoExt.ux/widgets/WMSLayerAdder.js 2010-03-15 19:18:27 UTC (rev 1964)
@@ -170,6 +170,7 @@
// Center Panel
oCenterPanel = {
+ xtype: 'form',
region: 'center',
id: "wms_capabilities_panel",
layout: 'column',
@@ -237,9 +238,18 @@
columns: [
{header: "Title", dataIndex: "title", sortable: true},
{header: "Name", dataIndex: "name", sortable: true},
- {header: "Queryable", dataIndex: "queryable", sortable: true, width: 70},
- {id: "description", header: "Description", dataIndex: "abstract"}
+ {header: "Queryable", dataIndex: "queryable", sortable: true, width: 70, hidden: true},
+ {id: "description", header: "Description", dataIndex: "abstract", hidden: true}
],
+ // SelectionModel
+ sm: new Ext.grid.RowSelectionModel({
+ //singleSelect: true,
+ listeners: {
+ rowselect: function(sm, row, rec) {
+ Ext.getCmp("wms_capabilities_panel").getForm().loadRecord(rec);
+ }
+ }
+ }),
autoExpandColumn: "description",
width: 'auto',
autoWidth: true,
More information about the Commits
mailing list