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

Disable Grid's vertical scrollbar

3 Answers 131 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Yan
Top achievements
Rank 1
Yan asked on 02 Dec 2010, 06:25 PM
Hi,

I am using version 2010.3.1111.235.

Would you please tell me how can I remove the vertical scrollbar of the grid?

At the moment, I can use the following code to show both of the horizontal and vertical scrollbars.

.Scrollable(scrolling => scrolling.Enabled(true)) 

But I would like to have the horizontal scrollbar only and let the grid to re-size the height of itself. Since if my grid only contains two rows of data, there will be a lot of spaces left within the grid. After adding the above code, the grid seems to have a fixed height.

(Sorry, my message title should be "Remove Grid's vertical scrollbar")

3 Answers, 1 is accepted

Sort by
0
Yan
Top achievements
Rank 1
answered on 06 Dec 2010, 05:53 PM
Ok. I have found that after specifying .Height("auto"), the vertical scrollbar will be always disabled and the grid will re-size the height by itself.
0
David
Top achievements
Rank 1
answered on 12 Apr 2011, 04:42 PM
I don't see where the grid supports a Height method?
0
David
Top achievements
Rank 1
answered on 12 Apr 2011, 06:10 PM
D'oh!  You weren't referring to a method on the Grid - you were referring to a method used when building out the scroll bar configuration.  Thanks for the tip!
Tags
Grid
Asked by
Yan
Top achievements
Rank 1
Answers by
Yan
Top achievements
Rank 1
David
Top achievements
Rank 1
Share this question
or