<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Display information window on click event of a new graphic in .NET and the Esri JavaScript API Questions</title>
    <link>https://community.esri.com/t5/net-and-the-esri-javascript-api-questions/display-information-window-on-click-event-of-a-new/m-p/821215#M51</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have a program where I create the following variables:&lt;/P&gt;&lt;P&gt;var point = new Point();&lt;/P&gt;&lt;P&gt;var markerSymbol = new PictureMarkerSymbol();&amp;nbsp;&lt;/P&gt;&lt;P&gt;var graphic = new Graphic(point, markerSymbol);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to display this new graphic on my map no problem anywhere I want but is it possible to make a click event on my graphic that will display an information window.&amp;nbsp; I was thinking that it would be possible using dojo/on but I could not figure out how to use dojo/on to attach a click event to the graphic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 May 2019 14:37:34 GMT</pubDate>
    <dc:creator>BrianRoscher</dc:creator>
    <dc:date>2019-05-01T14:37:34Z</dc:date>
    <item>
      <title>Display information window on click event of a new graphic</title>
      <link>https://community.esri.com/t5/net-and-the-esri-javascript-api-questions/display-information-window-on-click-event-of-a-new/m-p/821215#M51</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have a program where I create the following variables:&lt;/P&gt;&lt;P&gt;var point = new Point();&lt;/P&gt;&lt;P&gt;var markerSymbol = new PictureMarkerSymbol();&amp;nbsp;&lt;/P&gt;&lt;P&gt;var graphic = new Graphic(point, markerSymbol);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to display this new graphic on my map no problem anywhere I want but is it possible to make a click event on my graphic that will display an information window.&amp;nbsp; I was thinking that it would be possible using dojo/on but I could not figure out how to use dojo/on to attach a click event to the graphic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2019 14:37:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-and-the-esri-javascript-api-questions/display-information-window-on-click-event-of-a-new/m-p/821215#M51</guid>
      <dc:creator>BrianRoscher</dc:creator>
      <dc:date>2019-05-01T14:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Display information window on click event of a new graphic</title>
      <link>https://community.esri.com/t5/net-and-the-esri-javascript-api-questions/display-information-window-on-click-event-of-a-new/m-p/821216#M52</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need to trigger the click event to open the infowindow.&lt;/P&gt;&lt;P&gt;You may want to try this code snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you need to have a graphiclayer and add graphiclayer into the map.&lt;/P&gt;&lt;P&gt;Also Create the infotemplate.&lt;/P&gt;&lt;P&gt;and Add your newly created graphic into that graphic layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.map.centerAt(point);&lt;/P&gt;&lt;P&gt;this.map.infoWindow.setFeatures([graphic]);&lt;/P&gt;&lt;P&gt;this.map.infoWindow.show(point);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The concept is derived from that help&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/map_infowindow.html" title="https://developers.arcgis.com/javascript/3/jssamples/map_infowindow.html"&gt;Show an info window | ArcGIS API for JavaScript 3.29&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 06:55:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-and-the-esri-javascript-api-questions/display-information-window-on-click-event-of-a-new/m-p/821216#M52</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-07-24T06:55:50Z</dc:date>
    </item>
  </channel>
</rss>

