AnsweredAssumed Answered

Trigger "onClick" of graphics layer programmatically

Question asked by kdoman on Feb 20, 2013
Latest reply on Feb 20, 2013 by odoe
How do you trigger a graphicslayer's onclick event without clicking?

I've got an app that adds graphics on the map's graphics layer. I know the default behavior of a clicked graphic is to show the infoWindow with it's infoTemplate. Basically, I want to show the infoTemplate of the first graphic after all the graphics have been added to the map. Is there a way to trigger the "onClick" event on either the map or graphics layer without clicking?

Thanks,

Outcomes