A feature layer is created programmatically using feature layer definition and feature set. The data is coming from Jason based web service. In attribute table Filter (Allows to filter records in the table) button is disable. I like to use this filter option against out custom locally created feature layer. Please help me how can I turn on this option?
Kumar,
You can't. There is a limitation that comes with using FeatureLayers that are created from FeatureCollections:
Does not support queries that need to be performed on the server, e.g. queries with a where clause or non-extent based spatial queries.
Because of this filtering can not be accomplished.
Robert,
What I understand the operation is performed on server.
Is it possible the Filter option for feature collection based feature layer can be turned ON? If yes, will it work except query execution part? If yes, a custom function(s) can be developed.
Kumar,
Because of the limitation mentioned in my last post you can not turn on filtering in the attribute table for feature collections.