This is a migrated thread and some comments may be shown as answers.

Call autoFitColumn on Angular grid

1 Answer 145 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anna
Top achievements
Rank 1
Anna asked on 28 Jan 2016, 08:05 PM

I have a Angular grid setup with locked columns (so there are scrolling), resizable = true, and fixed column width. However, occasionally the content is longer than the column width. I want to programmatically call autoFitColumn() method to make the columns to fit the content. I don't see any event to signal grid render complete. Where is a good place to call autoFitColumn()?

I tried dataBound event, but I use template with angular expression in it. At point of dataBound, the angular expression are not evaluated yet, so the calling autoFitColumn in this event will actually make things worse.

 

Best,

 

Ama

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 01 Feb 2016, 12:53 PM
Hello Ama,

For achieving the desired result you could use the global event documented in the following help article:
Hope this helps.


Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Anna
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or