AnsweredAssumed Answered

Template picker problem

Question asked by geonetadmin on Feb 17, 2011
Latest reply on Feb 18, 2011 by geonetadmin
Original User:
Original Date: 2011-02-17T06:36:55-0600


I am having trouble getting the template picker to render in a div with scrollbars, the image spill out of the div and I am having trouble finding the correct css to apply to the dojo/digit before it renders.

I basically cant get the template picker when it is rendered to sit within the editorDiv.

Any ideas anyone ??

See code below and attached image;

mark up code;

<div dojotype="dijit.layout.ContentPane" id="templatePickerPane" onclick="editDivClickGrabXY()" style="width:200px;margin:1px;background-color:white; overflow:auto;">
<div id="editorDiv" style=" overflow:scroll; height:300px; width:150px; "></div>
Or select rotation icon:<br /><br />
<input id="btnRO" onclick="bob(0)" type="button" value="RO" title="Rotate Outlet" />
<input id="btnRG" onclick="bob(1)" type="button" value="RG" title="Rotate Gully" />
<input id="btnRI" onclick="bob(2)" type="button" value="RI" title="Rotate Inlet" /><br /><br />
Edit layer visibilty control:<br /><br />
<div id="editLayerControl" style=""></div>


javascript code;
var templateLayers =, function(result) {
return result.layer;

var featureLayerInfos =, function(result) {
return { featureLayer: result.layer };

var templatePicker = new esri.dijit.editing.TemplatePicker({
featureLayers: templateLayers,
grouping: true,
rows: 'auto',
columns: 4
}, 'editorDiv');

var settings = {
map: map,
templatePicker: templatePicker,
geometryService: geometryServiceGlobal,
layerInfos: featureLayerInfos
//populate editor widget
var params = { settings: settings };
editorWidget = new esri.dijit.editing.Editor(params);