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

[Solved] Vertical Scrollbar on the left

0 Answers 99 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Avanade
Top achievements
Rank 1
Avanade asked on 03 Mar 2011, 01:34 PM
Hi,

Is it possible to have the vertical scrollbar of the RadGrid on the left ?

I have done this with the SL DataGrid and it works, but when I tried the same approach with radGrid, it does not work.

<Style x:Key="ScrollViewer_VerticalScrollBarLeft_HorizontalScrollBarBottom" TargetType="{x:Type ScrollViewer}">
<Setter Property="OverridesDefaultStyle" Value="True"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ScrollViewer}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>

<ScrollContentPresenter Grid.Column="1"/>

<ScrollBar Name="PART_VerticalScrollBar"
Grid.Row="0"
Grid.Column="0"
Value="{TemplateBinding VerticalOffset}"
Maximum="{TemplateBinding ScrollableHeight}"
ViewportSize="{TemplateBinding ViewportHeight}"
Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"/>
<ScrollBar Name="PART_HorizontalScrollBar"
Orientation="Horizontal"
Grid.Row="1"
Grid.Column="1"
Value="{TemplateBinding HorizontalOffset}"
Maximum="{TemplateBinding ScrollableWidth}"
ViewportSize="{TemplateBinding ViewportWidth}"
Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Tags
GridView
Asked by
Avanade
Top achievements
Rank 1
Share this question
or