Editing widget - use dialog box instead of infowindow

636
3
08-04-2011 12:13 AM
simonmiles
New Contributor II
I've built an web app that is based on the following sample http://help.arcgis.com/en/webapi/javascript/arcgis/demos/ed/ed_default_editingwidget.html however my attribute table is very long and i'm not getting the look/feel that i want by playing around with the positioning and size of the infowindow. Therefore i was wondering if it was possible to modify the above sample so that instead of a infowindow you had a dialog box openup, in a fixed position/size that contained the attributes to either edit or create.

Or perhaps moving the infowindow into dijit.layout.ContentPane. Is this possible?

Si
0 Kudos
3 Replies
HemingZhu
Occasional Contributor III
I've built an web app that is based on the following sample http://help.arcgis.com/en/webapi/javascript/arcgis/demos/ed/ed_default_editingwidget.html however my attribute table is very long and i'm not getting the look/feel that i want by playing around with the positioning and size of the infowindow. Therefore i was wondering if it was possible to modify the above sample so that instead of a infowindow you had a dialog box openup, in a fixed position/size that contained the attributes to either edit or create.

Or perhaps moving the infowindow into dijit.layout.ContentPane. Is this possible?

Si

Attribute inspector has a property called domNode. So theoretically (i have not tried myself) you should be able to place it at dom element..
0 Kudos
simonmiles
New Contributor II
I know very little about the use of domNode element and interested in learning more. I had a look at the attribute inspector and could see the domNode but dont understand now it works. Any pointers would be good.
0 Kudos
HemingZhu
Occasional Contributor III
I know very little about the use of domNode element and interested in learning more. I had a look at the attribute inspector and could see the domNode but dont understand now it works. Any pointers would be good.


Basically the second parameter of the attribute inspector is either an existing DOM node -html element or newly created dom (dojo.create("div") etc). Once you create that, you could place it in your popup:
yourPopup.setContent(yourAttrInspector.domNode);
Please look at this ESRI sample or some others: http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples/widget_attributeInspectorPane.html.
0 Kudos