[Users] dynamic store on active layers

Eric Lemoine eric.lemoine at camptocamp.com
Thu Jun 24 07:14:05 CEST 2010


On Wednesday, June 23, 2010, François Boussuges <f.boussuges at gmail.com> wrote:
> Hello,
> I have different WFS layers on my application and I seek a method to
> make a dynamic store for my gridPanel.
> My idea is when I select a layer (I can just select one layer in the
> same time), my grid panel use a specific store of this layer, or the
> store load an other dataset.
> Have you an idea to create a variable with the active layer?

Hi. You can create one store and column model per WFS layer, and
reconfigure the grid when a node is selected in the tree. IIRC
GridPanel exposes an API for reconfiguring the grid.

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com


More information about the Users mailing list