In this sample, I've have hidden all the fields except the first column i.e. "Recreation area name". I would like to get the visible column names dynamically in JavaScript, in this case I should get the "Recreation area name" column. Which property of FeatureTable can I look for?
Solved! Go to Solution.
Ranga,
Use featureTable.columns this collection of FieldColumn gives you the name, alias, and hidden properties of columns.
Ranga,
Use featureTable.columns this collection of FieldColumn gives you the name, alias, and hidden properties of columns.
The documentation on the FieldColumn class needs to be updated to show all the available properties. Currently, it doesn't include "hidden" even though it is available.
Thanks for your response, after some investigation I found the hidden property of FieldColumn. However, observed that hidden property was not exposed for FieldColumn.
This class is still in beta so, the available properties are not set in stone yet and the doc is not quite there yet.