Select to view content in your preferred language

Dynamically Set Width of FeatureTable Columns

561
1
06-30-2022 07:48 AM
ChristopherSchreiber
Occasional Contributor II

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

0 Kudos
1 Reply
Justin_Greco
Occasional Contributor II

This works for me:

featureTable.grid?.findColumn(“FIELDNAME”)?.width = 100;

0 Kudos