Filtered FeatureLayer and ArcGISDynamicMapServiceLayer extent

Discussion created by enigma2522 on Nov 20, 2013
Latest reply on Nov 21, 2013 by enigma2522
Is there a way to get the extent of a layer which uses  layer definitions/expression? By default, I only see the extent of the service. It seems like running a query to compile extent is a bad option. This seems exceedingly true when it has to be done on ArcGISDynamicMapServiceLayer which would require separate queries on each sublayer.