How to make a column autoresize to the size of its content

Hi,

I have an issue. When i use adjustColumnSize(); function it adjusts the column size to its content but the column header size is not considered(it gets crumbled into multiple lines because the header is long and content is just a number). Is there a way to adjust the column size so that even the header size is considered while resizing ?
I have used enableColumnAutoSize(true); but it works only when I manually doubleclick the column header. Anyway we could make the sizing through code, for e.g after we load the data with the parse(…) function.

Any help is highly appreciated

You may try to use the enableAutoWidth() method.