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

Auto show the scrollbar

1 Answer 200 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Kay
Top achievements
Rank 1
Kay asked on 04 Jul 2016, 01:54 AM

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

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 05 Jul 2016, 09:17 AM
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.
 
Tags
TreeList
Asked by
Kay
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or