<?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 Re: Open info window on first click in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/open-info-window-on-first-click/m-p/17479#M367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can also do this way :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On your GraphicsLayer, you can listen for graphicAdd event and then add MouseEvents on those graphics. In the same way as done in the sample for FeatureLayer and its graphics.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jul 2011 22:59:49 GMT</pubDate>
    <dc:creator>SaurabhGupta</dc:creator>
    <dc:date>2011-07-08T22:59:49Z</dc:date>
    <item>
      <title>Open info window on first click</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/open-info-window-on-first-click/m-p/17475#M363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the best way to open up an info window on first click?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a Graphics Layere in my map:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:GraphicsLayer id="graphicsLayer" infoWindowRenderer="rdss.renderers.AllotmentGraphRenderer"/&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am listening for an onclick event in my map:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mapClick="onMapClick(event)" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Inside the onMapClick function, I am querying a dataset and adding the feature that the user clicked on to the graphics layer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;graphicsLayer.graphicProvider = allotFSet.features[0];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to click once more to open the info window based on my AllotmentGraphRenderer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you please point me to why this is happening and how to force the info window to open as soon as the graphicsLayer is populated with a graphic?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 18:29:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/open-info-window-on-first-click/m-p/17475#M363</guid>
      <dc:creator>GerardoArmendariz</dc:creator>
      <dc:date>2011-07-06T18:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Open info window on first click</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/open-info-window-on-first-click/m-p/17476#M364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can probably try something similar as this sample :&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=FeatureLayer_MouseOver_Snapshot"&gt;http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=FeatureLayer_MouseOver_Snapshot&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 19:47:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/open-info-window-on-first-click/m-p/17476#M364</guid>
      <dc:creator>SaurabhGupta</dc:creator>
      <dc:date>2011-07-06T19:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Open info window on first click</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/open-info-window-on-first-click/m-p/17477#M365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your suggestion. I was stuck on functionality prior to the FeatureLayer.&amp;nbsp; I will give it a try.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 23:39:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/open-info-window-on-first-click/m-p/17477#M365</guid>
      <dc:creator>GerardoArmendariz</dc:creator>
      <dc:date>2011-07-07T23:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Open info window on first click</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/open-info-window-on-first-click/m-p/17478#M366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looking through the documentation, I just noticed that spatialRelationship are not allowed with the FeatureLayer.&amp;nbsp; So, I guess I have to go back to my first approach using the QueryTask and the GraphicsLayer.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know of any way to automatically open up the infoWindow on the first click (when the feature is selected)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 21:08:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/open-info-window-on-first-click/m-p/17478#M366</guid>
      <dc:creator>GerardoArmendariz</dc:creator>
      <dc:date>2011-07-08T21:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Open info window on first click</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/open-info-window-on-first-click/m-p/17479#M367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can also do this way :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On your GraphicsLayer, you can listen for graphicAdd event and then add MouseEvents on those graphics. In the same way as done in the sample for FeatureLayer and its graphics.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 22:59:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/open-info-window-on-first-click/m-p/17479#M367</guid>
      <dc:creator>SaurabhGupta</dc:creator>
      <dc:date>2011-07-08T22:59:49Z</dc:date>
    </item>
  </channel>
</rss>

