Select to view content in your preferred language

ArcGIS Map Web Part - Selection tool, event handling query

712
0
04-19-2013 01:44 AM
StephenThornton
Deactivated User
Hi All,

I am using the selection tools built in to the map web part to select a feature from a layer on the map.

A custom tool when launched, checks for the presence of a selected feature and performs a query, displaying the results in a data grid control.

In my custom tool I want to listen for changes to the selection so I can re-run the query based on the new selection. However there does not appear to be an event exposed (like the EditCompleted event in Silverlight API Editor control) by the selection tools  that are part of the map web part.

I can listen to changes in the SelectionCount property if I cast the selected layer to a FeatureLayer object. However if, for example, I select 2 polygons from the layer, my event handler is hit multiple times, not just when the selection has completed.

Does anybody know of other ways to hook into the map web part Selection tools and listen for a selection change event?

Many Thanks,

Steve
0 Kudos
0 Replies