I created a custom esri:infoWindowRenderer within esri:FeatureLayer. Clicking on the individual features opens the custom infoWindowRenderer with appropriate feature data attributes and appropriate interaction with those feature data attributes.
The problem comes when I add a new feature to the layer and try to open the custom infoWindowRenderer for the newly added feature. I have been able to get it to work correctly but only a small percentage of the time (approx 5%). When it doesn't work right I still get an infoWindow but instead of the custom infoWindowRenderer getting the dataChange it seems to go instead to the default map.infoWindow with null data object (i.e. just the X to close the infoWindow).
Following is the code where the I am making the call to open the custom infoWindowRenderer:
midmileLayer.map.infoWindow.data = infoData;
midmileLayer.map.infoWindow.show(infoMapPoint);
I make this call 2 seconds after the featureLayer refresh which is 2 seconds after the applyEdits for adding the new feature.
Thanks in advance for any help.
Mark