[Users] Synchronized two GridPanel with selectFeature
Pierre Giraud
pierre.giraud at camptocamp.com
Wed Jun 2 10:07:44 CEST 2010
Actually, you don't really need to load the data twice. The features
in your layer should help you fill the grid.
Consider using a FeatureStore bound to your layer.
http://geoext.org/lib/GeoExt/data/FeatureStore.html
var store = new Ext.data.FeatureStore({
layer: yourLayer,
fields: [{
...
}]
});
Then use this store for your grid panel.
Regards,
Pierre
2010/6/2 François Boussuges <f.boussuges at gmail.com>:
> Hello,
> I have a question about the feature selection and the grid panel.
>
> I have a WFS layers with a grid panel, in this layer I have an ID_SITE
> attribute.
> In a second grid panel I load XML files (with Ajax), this files contains
> the ID_SITE attribute.
>
> When I select à features of my WFS layer (on the map or the gridpanel)
> what do I do to select automaticaly rows with the same ID_SITE in the
> second grid panel?
>
> Thank youvery much!
>
> François
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
--
Pierre GIRAUD
Géomaticien, Analyste
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 93
Mail : pierre.giraud at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list