This is a migrated thread and some comments may be shown as answers.
Force Kendo grid to display horizontal scrolling bar even if there is no data to display
3 Answers 7 Views
This is a migrated thread and some comments may be shown as answers.
yuriy
Top achievements
Rank 1
yuriy asked on 29 Jun 2020, 03:55 PM

Hello All,

I have a Kendo grid where all of its columns do not fit into the grid width. 

If there is a least one row of data to display the grid shows a horizontal scrolling bar.

However if there is no data, there is no horizontal scrolling bar. Even though it is a cosmetic issue and it happens when there is nothing to display, some of my users complain and want to have horizontal scrolling bar displayed.

Is there any way to get this done?

 

Thank you!

 

 

 

3 Answers, 1 is accepted

Sort by
0
Silviya Stoyanova
Telerik team
answered on 30 Jun 2020, 10:10 PM

Hello Yuriy,

By default, the scrolling functionality of the Grid is disabled in Kendo UI for ASP.NET MVC. In order to enable it, you need to define the Scrollable property.

To render scrollbars and achieve horizontal scrolling explicitly define the width of all columns in pixels and make sure their sum exceeds the width of the Grid.

You can find more information about the scrolling functionality in the following documentation article - Grid Scrolling Overview.

Kind Regards,
Silviya Stoyanova
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
yuriy
Top achievements
Rank 1
answered on 01 Jul 2020, 12:25 PM

Hello Silviya,

Thank you for your response!

I was side-tracked by some other project and will be able to try what you recommended tomorrow.

 

Best regards,

Yuriy.

0
Nikolay
Telerik team
answered on 03 Jul 2020, 10:54 AM

Hi Yuriy,

You are most welcome.

Please take your time and let us know it this helps as soon as you manage to try it. The thread will remain open for the next 7 days. Even if it goes closed you can still reply and it will reopen itself.

Regards,
Nikolay
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.
Tags
Grid
Asked by
yuriy
Top achievements
Rank 1
Answers by
Silviya Stoyanova
Telerik team
yuriy
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or