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
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="..."