<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#40007f;">Hi,<br><br>I am using a propertygrid to display the attributes of a vector layer.<br><br>I would like to be able to do two things....<br><br><span>1. Add a little pointer to the bottom of the grid so that one sees clearly which element is selected. (I am refering to this example (<a target="_blank" href="http://dev.geoext.org/trunk/geoext/examples/popup.html">http://dev.geoext.org/trunk/geoext/examples/popup.html</a>)</span><br>2. Be able to filter (regulate) which attributes are being shown by the propertygrid.<br><br>Thanks for any help,<br><br>Rob<br><br>My code for the popup is here: It is triggered by clicking on the layer "layer_wea"<br><br><br>layer_wea.events.on({<br> featureselected: function (event) {<br> <br> var propsGrid = new
Ext.grid.PropertyGrid({<br> autoHeight: true,<br> source: event.feature.attributes<br> });<br><br> // rename the columns in the property grid<br> propsGrid.getColumnModel().setColumnHeader(0, 'EIGENSCHAFT');<br> propsGrid.getColumnModel().setColumnHeader(1, 'WERT');<br> <br> popup_wea = new GeoExt.Popup({<br> id: 'popup_wea',<br> title: "Informationen",<br> feature: event.feature,<br> collapsible: true,<br> layout: "fit",<br> autoHeight: true,<br> panIn: true,<br> width: 270,<br> unpinnable: true,<br> border: false,<br> items: [propsGrid]<br> });<br><br> popup_wea.show();<br> },<br> featureunselected: function (event) {<br> popup_wea.destroy();<br> }<br>});<br><div><br></div>
</div></body></html>