I have found that if I have an infoTemplate set for a feature layer, when I try to use map.infoWindow.setContent(attributeInspector) the infoTemplate content overrides it and continues to display.
If I first set
feature.setInfoTemplate()
with the blank parameters and then change the content, it works. Anyone know how to use map.infoWindow.destroyDijits or other methods to create a more elegant solution?
This JSFiddle demonstrates an infoTemplate overriding the setContent() method.
Edit fiddle - JSFiddle