Hello Balaji,
You want to autoSize the width of a column, am I right?
For this you can use the command below:
GridAPI.GridManager.GetActiveGrid().grid.autoSizeColumns() // This will autosize the whole grid
GridAPI.GridManager.GetActiveGrid().grid.autoSizeColumn(0) // This will autosize just the column available on index 0
PS: The grid variable will change to provider on the next release.
Can you create an idea here? If the feature is upvoted we will for sure consider to open a better way to auto size columns.
Kind regards,
Ricardo Valim