Solved! Go to Solution.
dojo.forEach(this.map.getLayer('Points').graphics, function(g) { if(g.attributes.OBJECTID == objectId) { if(g.getDojoShape() != null) g.getDojoShape().moveToFront(); } });
dojo.forEach(this.map.getLayer('Points').graphics, function(g) { if(g.attributes.OBJECTID == objectId) { if(g.getDojoShape() != null) g.getDojoShape().moveToFront(); } });
Quick question: Are the other lines on top of the selected line in the same FeatureLayer?
get a handle to the esri.Graphic (the feature you have selected) and callg.getDojoShape().moveToFront();
g.getDojoShape().moveToFront();