Auto Fit Columns in JavaScript TreeGrid
The autoFitColumns method resizes the column to fit the widest cell’s content without wrapping. You can autofit a specific column at initial rendering by invoking the autoFitColumns method in dataBound event.
You can autofit all the columns by invoking the
autoFitColumnsmethod without column names.