5 Answers, 1 is accepted
0
Accepted
Hello Zach,
Currently, the Grid's API does not provide a method for changing a column's width, however you could achieve similar results using the setOptions method. For example:
Regards,
Alexander Popov
Telerik
Currently, the Grid's API does not provide a method for changing a column's width, however you could achieve similar results using the setOptions method. For example:
var
grid = $(
"#myGrid"
).getKendoGrid();
grid.columns[0].width = 100;
grid.setOptions({columns: grid.columns});
Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
0
0

Zach
Top achievements
Rank 1
answered on 26 Nov 2014, 05:44 PM
I can't seem to get the columns to shrink smaller than the width of the text in the cells. Do you know if there's an override to this?
0
Hi Zach,
Setting a smaller size than would require the Grid's scrollable option to be enabled, otherwise the total with of the column would always be equal to the Grid's content table width.
More information on that topic can be found here.
Regards,
Alexander Popov
Telerik
Setting a smaller size than would require the Grid's scrollable option to be enabled, otherwise the total with of the column would always be equal to the Grid's content table width.
More information on that topic can be found here.
Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!