[Users] Grids, checkboxes & feature mediators
Matt Priour
mpriour at kestrelcomputer.com
Tue Apr 28 22:05:17 CEST 2009
I have an interesting use case and I wanted to know if it was possible to to accomplish using GridRowFeatureMediator, or another one of the mediator or mixin classes.
I will display a grid representing feature attributes which uses a checkbox selection model. Each row is connected to an geometry but the information for the grid is pulled using non-spatial sql and just has the attributes and record ids.
The user's click on a checkbox will initiate a request which will result in that feature being added to the map.
Once the feature is added to the map then we want the GridRowFeatureMediator behaviour of clicking on a row selects the feature in the map and selecting the feature in the map highlights & focuses the row.
If all of the records in the grid had an OpenLayers Feature to associate with then things are pretty easy, but with only some of the rows having associated OpenLayers Features I can't quite see the correct way to do this.
I am I fine with rolling my own functionality if I have to but am hoping that this can be accomplished with pre-existing components.
Matt Priour
Kestrel Computer Consulting
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20090428/9f8a759c/attachment.htm
More information about the Users
mailing list