[Users] How to add a pointer to a popup?

Robert Buckley robertdbuckley at yahoo.com
Tue Apr 12 11:49:25 CEST 2011


Hi,

I am using a propertygrid to display the attributes of a vector layer.

I would like to be able to do two things....

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 
(http://dev.geoext.org/trunk/geoext/examples/popup.html)
2. Be able to filter (regulate) which attributes are being shown by the 
propertygrid.

Thanks for any help,

Rob

My code for the popup is here: It is triggered by clicking on the layer 
"layer_wea"


layer_wea.events.on({
 featureselected: function (event) {
 
  var propsGrid = new Ext.grid.PropertyGrid({
   autoHeight: true,
   source: event.feature.attributes
  });

  // rename the columns in the property grid
  propsGrid.getColumnModel().setColumnHeader(0, 'EIGENSCHAFT');
  propsGrid.getColumnModel().setColumnHeader(1, 'WERT');
 
  popup_wea = new GeoExt.Popup({
   id: 'popup_wea',
   title: "Informationen",
   feature: event.feature,
   collapsible: true,
   layout: "fit",
   autoHeight: true,
   panIn: true,
   width: 270,
   unpinnable: true,
   border: false,
   items: [propsGrid]
  });

  popup_wea.show();
 },
 featureunselected: function (event) {
  popup_wea.destroy();
 }
});
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110412/ad0724f7/attachment.htm 


More information about the Users mailing list