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

RadGrid Horizontal Scrollbars

2 Answers 258 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tom Gibson
Top achievements
Rank 1
Tom Gibson asked on 09 May 2008, 07:58 PM
Is there a property that can be set on a RadGrid to not allow horizontal scrolling or do I just have to play with the width of the grid to get rid of the scroll bar. I want vertical scroll bars and am just wondering if there is something more specific than AllowScrolling.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 10 May 2008, 11:53 AM
Hi Tom,

You have several ways to achieve the desired behavior (visible vertical scrollbar and no horizontal scrollbar) :

1) Set TableLayout="Fixed" to the MasterTableView and do not set any Width to the MasterTableView.

2) Set a Width to the MasterTableView (in pixels), which is less than the Width of RadGrid. The difference between the two widths depends on the skin and the cell paddings.

3) Do not set any Width to the MasterTableView, but set Widths to all columns, no matter whether it is the same for all columns or not. Please note that the correct way to set a column width is by setting HeaderStyle-Width="...", not ItemStyle-Width="..."


Let us know how it goes.



Greetings,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Princy
Top achievements
Rank 2
answered on 12 May 2008, 05:31 AM
Hi Tom,

 To restrict the horizontal bar from being rendered, verify that:
  • the width for the MasterTableView is set to 99% if auto-generated columns are used
  • the total width of the declaratively set columns is smaller than the width of the grid itself

   Basic scrolling 

Princy.

Tags
Grid
Asked by
Tom Gibson
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Princy
Top achievements
Rank 2
Share this question
or