Hello all!
Our team is trying to dynamically set the width of all of the columns in a FeatureTable. We would like to have each column be as long as the longest value in that column.
By default, the FeatureTable makes all columns the same width, regardless of the side of the data they contain.
Has anyone Tried to do this before?
Thanks!
Chris
Solved! Go to Solution.
This works for me:
featureTable.grid?.findColumn(“FIELDNAME”)?.width = 100;
This works for me:
featureTable.grid?.findColumn(“FIELDNAME”)?.width = 100;
Thanks @JustB!
This worked!
Esri also added a "width" property to the Column class in the JS SDK.