AutoFitColumn truncating headings

5 posts, 0 answers
  1. Cobus
    Cobus avatar
    1 posts
    Member since:
    May 2016

    Posted 21 Jul 2016 Link to this post

    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?

  2. Orlin
    Admin
    Orlin avatar
    62 posts

    Posted 25 Jul 2016 Link to this post

    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.
  3. Martin
    Martin avatar
    2 posts
    Member since:
    Feb 2019

    Posted 21 May 2020 Link to this post

    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?
  4. Preslav
    Admin
    Preslav avatar
    591 posts

    Posted 25 May 2020 Link to this post

    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.
  5. Gerry
    Gerry avatar
    33 posts
    Member since:
    May 2017

    Posted 04 Aug 2020 in reply to Preslav Link to this post

    Filtering is just an option in the grid that you turn on. Then you get a filtering icon. 
Back to Top