How to Exit or End the Editor Widget

621
0
06-20-2011 05:15 PM
DEWright_CA
Occasional Contributor III
Ok, so I have a nice app that when the user wants they hit a 'Start Editing' button that swaps MapService for FeatureService layers and then finally calls 'editorWidget.startup();' and the control loads as expected.

Now, I have a similar button to 'Stop Editing' that I want to use to swap my layers back and disable/remove the 'editorWidget' but I am not able to see a API reference to see how to do it.

Ok, so I see another thread about this being a Dijit thing, but what would be the best option? I need to essentially disable the editing and I want to hide/remove the control that has since appeared? Am I looking at a Inline HTML/DIV edit to clear that div?
0 Kudos
0 Replies