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

Clarification on column width & scrollable

2 Answers 153 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kenny
Top achievements
Rank 1
Kenny asked on 22 Apr 2013, 06:49 PM
I'm currently evaluating the Kendo UI Grid for use with our product and have come across an issue regarding column widths. According to many forum posts the defined column widths of a Grid become fixed if the Grid's "scrollable" property is set to true. I need to use the grid with scrollable.virtual = true, with the ability to set the width of the Grid's columns, and potentially have a horizontal scrollbar. According to existing forum posts this doesn't seem to be possible.

However, when I look at the Kendo UI site's example, specifically this one: 
http://demos.kendoui.com/web/grid/virtualization-remote-data.html

We have a grid that is scrollable, in virtual mode, and the widths of the columns seem to be respected with a horizontal scrollbar. In my testing, my code is virtually identical with the exception of using my own datasource, yet I end up with columns with equal widths. Is the behavior in the example actually possible or is that based on some deprecated version? 

Also is there a way to get the vertical scrollbar to show up on mobile devices/tablets?

Thanks, 
Kenny

2 Answers, 1 is accepted

Sort by
0
Kenny
Top achievements
Rank 1
answered on 23 Apr 2013, 12:21 AM
OK turns out my problem was some issue with jQuery 2.0. I rolled back to jQuery 1.9 and the columns now respect the widths that I define even when the scrollable property is set to true (virtual:true). 
0
Alexander Valchev
Telerik team
answered on 24 Apr 2013, 11:24 AM
Hi Kenny,

I am glad to hear that you have managed to resolve the first problem. If I understood correctly, only the question about vertical scrollbar is not answered.

When the application is opened on a mobile device, Kendo Grid uses mobile scroller as it is optimized for touch actions. It emulates the behaviour of the native scroller of the mobile browser which is not constantly visible too. I am afraid that this behaviour cannot be prevented.

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Kenny
Top achievements
Rank 1
Answers by
Kenny
Top achievements
Rank 1
Alexander Valchev
Telerik team
Share this question
or