PDA

View Full Version : GeoExt.FeatureStore in PropertyGrid



maxkliver
1 Aug 2012, 12:49 AM
Hi

I have a featurestore


st = new GeoExt.data.FeatureStore({
layer: myVecLayer,
fields: [
{name: 'id', type: 'int'},
{name: 'mydata', type: 'String'}
],
proxy: new GeoExt.data.ProtocolProxy({
protocol: new OpenLayers.Protocol.WFS({
version: "1.0.0",
srsName:"EPSG:900913",
url: "http://localhost:8080/geoserver/wfs",
featureType: "filedata_temp",
featureNS: "http://www.opengeospatial.net/cite",
filter:Ffilter
})
}),
autoLoad: true
});

And i want to show fature attributes in propertygrid.


var propGrid = new Ext.grid.PropertyGrid({
autoHeight: true,
source:st.getAt(0).data,
renderTo: 'centercolumn',
width: 400,
border: true,
stripeRows: true,
bbar:[saveButton,cancelButton,editButton]
});

But how to do this?

mitchellsimoens
7 Aug 2012, 12:12 PM
Best to contact the author of the store to see how to use it for your uses.