Auto show the scrollbar

2 posts, 0 answers
  1. Kelvin
    Kelvin avatar
    8 posts
    Member since:
    Aug 2013

    Posted 03 Jul Link to this post


    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.




  2. Stefan
    Stefan avatar
    195 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:

    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.

    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top