infowindow method use in the case when user want to get popup on map click ...but in my case i want popup on symbol click. i have checked to bind infowindow method while initializing symbol it not works.
I am sending my code :
var pt = new esri.geometry.Point(X1, Y1, new esri.SpatialReference({ wkid: 4326 }));
var symbol = new esri.symbol.PictureMarkerSymbol('primary_symbols/' + Img, 40, 30);
var json = { title: "Telecom", content: "Details"}
var info1 = new esri.InfoTemplate(json);
var graphic1 = new esri.Graphic(pt, symbol);
graphic1.setInfoTemplate(info1);
map.graphics.add(graphic1);