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

AutoFitColumn truncating headings

4 Answers 486 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Cobus
Top achievements
Rank 1
Cobus asked on 21 Jul 2016, 12:22 PM

I have a grid that has filtering enabled on each column. When I call AutoFitColumn(), the columns size correctly to accommodate the data, but some are too narrow to show the heading. I don't know if this is related to the fact that the filtering icon also displays in the column heading, or if the heading text is simply ignored altogether when doing the autofit.

The problem is obvious: Having a column named "Sca..." isn't as useful as having one named "Scanned Date" and this actually destroys the case for using AutoFitColumn in the first place.

Is there a decent workaround for this?

4 Answers, 1 is accepted

Sort by
0
Orlin
Telerik team
answered on 25 Jul 2016, 08:45 AM
Hello Cobus,

Indeed, the filter icon causes column auto fitting to not work as expected and the filter icon to overlap the header cell text. The reason for the issue is a negative margin that is used for the filtering button, but the CSS implementation can be tweaked to avoid the problem. Here is an example:

http://dojo.telerik.com/OYEqa/7

We have fixed this in our source and changes will take effect in the next Kendo UI builds. I have updated your Telerik points for bringing the issue to our attention.

Regards,
Orlin
Telerik by Progress
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
0
Martin
Top achievements
Rank 1
answered on 21 May 2020, 01:29 PM
I am using the kendo version 2017.3.1026 and got the same non-desire behaviour as Cobus, when I'm add the filter icon and apply the autofit function all the headings are truncated.

is there any solution on this?
0
Preslav
Telerik team
answered on 25 May 2020, 07:59 AM

Hi Martin,

Based on the provided description, I am not sure how do you add a filter icon. Could you please elaborate on that? 

 

Regards,
Preslav
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Gerry
Top achievements
Rank 1
Veteran
answered on 04 Aug 2020, 10:00 PM
Filtering is just an option in the grid that you turn on. Then you get a filtering icon. 
Tags
Grid
Asked by
Cobus
Top achievements
Rank 1
Answers by
Orlin
Telerik team
Martin
Top achievements
Rank 1
Preslav
Telerik team
Gerry
Top achievements
Rank 1
Veteran
Share this question
or