[Users] How to change data feature grid table when the layer is selected?
Ivan Pašić
ivanpasic.zd at gmail.com
Tue Apr 9 20:14:20 CEST 2013
Hi, I have problem with configuring my feature grid table with geoext. I
have created featue grid table and defined store and column model for one
of my layers. I would like now to configure it so when user click on some
other layer that feature grid changes.
I can create stores and columns for each of my layers but I don't know how
to change store value depending on layer user selected.
This is part of my code:
{
xtype: "grid",
ref: "featureGrid",
title: "Feature Table",
collapsible: true,
region: "south",
height: 190,
sm: new GeoExt.grid.FeatureSelectionModel(),
store: store_marine,
cm: column_marine
}
Notice: I defined store_marine and column_marine variables in other part of
my code and I'm sure it's good because feature table looks good for that
layer.
But I would like to know how to change store value if user click on some
other layer (e.g if he clicks on layer 'gas stations' how to change value
of store parameter to store_gas_stations (let's say I've already created
that store_gas_stations) ?
I hope you understand my question and sorry for my bad English.
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20130409/be38d6d3/attachment.htm
More information about the Users
mailing list