Auto fit columns in JavaScript Treegrid control

18 Nov 20181 minute to read

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 autoFitColumns method without column names.