How to Exit or End the Editor Widget

Discussion created by dewright_ca on Jun 20, 2011
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?