Auto show the scrollbar

2 posts, 0 answers
  1. Kay
    Kay avatar
    16 posts
    Member since:
    Aug 2013

    Posted 03 Jul Link to this post

    Hi,

    The scrollbar is always shown if we set 'scrollable' to true. We need the scrollbar only show if there are many rows.

    I tried to change 'overflow-y' to 'auto' for '.k-grid-content', it works fine on tree content, but the main issue is on the header, where the scrollbar header cell is always there.

    Please kindly advice any way to solve it.

    Thanks,

    Kelvin

     

  2. Stefan
    Admin
    Stefan avatar
    272 posts

    Posted 05 Jul Link to this post

    Hello Kelvin,

    It is possible to hide the vertical scrollbar when it is not needed. Please check the following example from our documentation:

    http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Layout/hide-scrollbar-when-not-needed

    In addition, I noticed that the post is in the TreeList category, but the class k-grid-content is mentioned. Please have in mind that the provided example is applicable for both widgets when the correct CSS selectors are used.

    Let me know if you need additional information.

    Regards,
    Stefan
    Telerik
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  3. Kendo UI is VS 2017 Ready
Back to Top