[Users] "GeoExt.grid.FeatureSelectionModel()" destroys Layout
Christian Willmes
c.willmes at uni-koeln.de
Thu Jan 20 12:00:55 CET 2011
Hello,
in the moment I try to connect a GeoExt.data.FeatureStore to a
Ext.grid.GridPanel using GeoExt.grid.FeatureSelectionModel() for
interaction.
I am able to connect the FeatureStore to the GridPanel, but as soon as I
add the FeatureSelectionModel, the complete PanelLayout is destroyed.
This is the source of the GridPanel:
var grid = new Ext.grid.GridPanel({
width: '100%',
height: 143,
viewConfig: {forceFit: true},
store: Store,
//sm: new GeoExt.grid.FeatureSelectionModel(),
cm: new Ext.grid.ColumnModel({
defaults: {
sortable: true
},
columns: [
{header: "Site", dataIndex: "site"},
{header: "Stage", dataIndex: "stage"},
{header: "Technocomplex", dataIndex: "technocomp"},
{header: "Method", dataIndex: "methode"},
{header: "Age (calbp)", dataIndex: "calbp"},
{header: "standard deviation", dataIndex: "std"},
{header: "Autor", dataIndex: "Autor"},
{header: "LabCode", dataIndex: "LabCode"}
]
})
});
You can find the complete application here:
http://www.sfb806db.uni-koeln.de/irtg_webgis/app-sent-to-geoext.html (if
you may want to have a look at the complete source).
If the "sm: new GeoExt.grid.FeatureSelectionModel()" is commented out,
everything looks fine, see (The style rules for the data are just for
testing at the moment! ;)):
http://www.sfb806db.uni-koeln.de/irtg_webgis/commented.png
If I uncomment the "sm: new GeoExt.grid.FeatureSelectionModel()" it
breks the Layout see:
http://www.sfb806db.uni-koeln.de/irtg_webgis/uncommented.png
But I need to have the interaction between the Grid and the selected
features on the map, any hint or advice to get this is very apreciatred!
Thank you very much and best regards,
Christian
--
Christian Willmes
AG GIS & Fernerkundung | GIS & RS Group
Geographisches Institut | Institute of Geography
Universität zu Köln | University of Cologne
Tel.: +49 (0)221 470 6234
Fax.: +49 (0)221 470 2280
http://www.geographie.uni-koeln.de/gis
http://www.sfb806.de
More information about the Users
mailing list