Hello list,we figured out that an Ext.grid.GridPanel in combination with a GeoExt.grid.FeatureSelectionModel has only interaction possibilities by the select events (rowselect & featureselected / rowdeselect & featureunselected). The reason is that there is no hovering offered within the Ext.grid.GridPanel. By using an ux (http://www.sencha.com/forum/showthread.php?77730-cellmouseenter-and-cellmouseleave-etc-for-GridPanel) it is possible to get hover events for the Ext.grid.GridPanel. This works very well, but the connection to the layers is of course still missing. Therefore we extended the GeoExt.grid.FeatureSelectionModel in that way it binds the hovering events of a OpenLayers.Control.SelectFeature control (hover=true) to the corresponding hover events of the grid. Now it is possible to have a select control, a hover control or both within the GeoExt.grid.FeatureSelectionModel.
To show the functionality we extended the example of the geoext website: http://www.webmapcenter.de/geoext-hover-grid/examples/example-grid.html
The code files are attached to this mail. Any comments and revisions are very welcome. Best regards, Thorsten, Marc & Christian
Ext.ux.grid.GridMouseEvents.js
Description: application/javascript
Terrestris.FeatureSelectionModel.js
Description: application/javascript
_______________________________________________ Dev mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/dev
