AnsweredAssumed Answered

Problem with display PrintWidget and Others in TooltipDialog!

Question asked by HuyQuoc on Apr 3, 2016

Hi everybody,


I'm trying to display PrintWidget and Others in TooltipDialog but cannot success. Here is my sample code:

var btn_printer = new dijit.form.DropDownButton({
      dropDownPosition: ['after-centered'], 
     var btn_printer_dialog = new dijit.TooltipDialog({
      content: '<div id="printPane"></div>'
     btn_printer.set('dropDown',  btn_printer_dialog);


var printer = new esri.dijit.Print({
         map: map,
         url: "http://mydomain/arcgis/rest/PrintingTools/GPServer/Export%20Web%20Map%20Task",
  templates: [{
  label: "Map Layout",
  format: "PDF",
  layout: "MAP_ONLY",
  exportOptions: {
  width: dojo.position(dojo.byId("map")).w,
  height: dojo.position(dojo.byId("map")).h,
  dpi: 96
     }, dojo.byId("printPane"));


Please help me to fix it. Thank you.