Search code examples
kendo-uikendo-gridkendo-ui-angular2

How to auto resize grid columns based on the data in Kendo-Angular2-grid?


I am using the plunker mentioned at Telerik's web page: http://www.telerik.com/kendo-angular-ui/components/grid/

I tried changing column width to auto but it does not work.


Solution

  • According to documentation currently kendo grid column supports only width specified in pixels:

    width

    The width of the column in pixels.

    However if you won't provide this property for one or mores column it will take all remaning space (equally divided if more than one).

    So if you want for column to be auto width just skip this property in its definition.