Select to view content in your preferred language

Editing tool widget.

1169
1
12-07-2011 07:37 AM
DavidAshton
Frequent Contributor
I have the editing tools (editor widget) up and running and I was wondering if someone could help me adjust the tools slightly.

http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitEditorWidget

In the example and in my program it seems like you can't use the select tool and then just hit the "Display Attribute" button so show the attributes of the selected feature.  My first question is can you link the selected features to work with the "Display Attribute" tool so one doesn't have to select the feature again after you click the "Display Attribute."

My second question is how could I change the look of the mouse cursor if the attribute icon is selected so the end user knows that they selected that tool.

Thanks
D
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
Clicking display attribute button in EditorWidget, will cancel any active command so you cannot use this in combination with Editor.Select command. You can use subscribe to EditorWidget.EditCompleted and use FeatureDataForm instead: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitFeatureDataForm

void EditorWidget_EditCompleted(object sender, Editor.EditEventArgs e)
{
 foreach (var edit in e.Edits)
 {
  if (edit.Graphic.Selected)
  {
   myFDF.FeatureLayer = edit.Layer as FeatureLayer;
   myFDF.GraphicSource = edit.Graphic;
  }
 }
}


This seem related to updating cursor: http://forums.arcgis.com/threads/44498-Change-Mouse-Cursor-when-hovering-a-feature
0 Kudos