<div dir="ltr"><div>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.</div>
<div>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.</div><div>This is part of my code:</div><div>{</div><div><span class="" style="white-space:pre">        </span>xtype: "grid",</div>
<div> ref: "featureGrid",</div><div> title: "Feature Table",</div><div> collapsible: true,</div><div> region: "south",</div><div> height: 190,</div><div> </div><div> sm: new GeoExt.grid.FeatureSelectionModel(),</div>
<div> store: store_marine,</div><div> cm: column_marine</div><div> </div><div> <span class="" style="white-space:pre">        </span></div><div>}</div><div><br></div><div>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.</div>
<div>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) ?</div>
<div><br></div><div>I hope you understand my question and sorry for my bad English.</div><div>Thanks</div></div>