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

autoFitColumns only works with Grid footer?

1 Answer 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tanguy Detroz
Top achievements
Rank 1
Tanguy Detroz asked on 18 Jul 2017, 03:24 PM

Hello,

we have noticed that the autoFitColumn(column) method of the Grid only works properly if the Grid displays a footer.

The autoFitColumn does a Math.max on the outerWidth of the column's header, body and footer, but if no footer is available, the Math.max return NaN, thus breaking the autoFitColumn correct behavior.

Is it possible to correct this?

Kind regards

 

1 Answer, 1 is accepted

Sort by
0
Preslav
Telerik team
answered on 20 Jul 2017, 02:16 PM
Hello Tanguy,

I was not able to replicate the described faulty behavior. Please check my testing Dojo:
That said, in order to continue my investigation, could you please modify the above Dojo so it replicates the problem. After that, share the new Dojo with your next post.

I look forward to hearing from you.


Regards,
Preslav
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Tanguy Detroz
Top achievements
Rank 1
Answers by
Preslav
Telerik team
Share this question
or