This question is locked. New answers and comments are not allowed.
Hi,
I am having a RadTreeListView inside a Scrollviewer control
How to freeze a header of a RadTreeListView grid which is inside a Scrollviewer control.
The grid works fine with the scrollview, but when I use the scrollbar, the header of the grid is also getting hided,
Is there anyway to free similar to Excel.
Thanks and Regards,
V.Chocks.
I am having a RadTreeListView inside a Scrollviewer control
How to freeze a header of a RadTreeListView grid which is inside a Scrollviewer control.
The grid works fine with the scrollview, but when I use the scrollbar, the header of the grid is also getting hided,
Is there anyway to free similar to Excel.
<
ScrollViewer
x:Name
=
"scrollMainGrid"
Padding
=
"0,0,0,0" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
>
<
telerikgridview:RadTreeListView
Name
=
"grdPrclist"
AutoGenerateColumns
=
"False"
SelectionMode
=
"Single"
Height
=
"Auto"
Width
=
"Auto"
VerticalAlignment
=
"Top"
Grid.Row
=
"1"
Grid.Column
=
"0"
RowDetailsVisibilityMode
=
"Collapsed"
SelectionChanging
=
"Grid_SelectionChanging"
SelectionChanged
=
"GridRow_SelectionChanged"
RowLoaded
=
"Prclist_RowLoaded"
IsFilteringAllowed
=
"True"
Padding
=
"0,0,0,0"
IsReadOnly
=
"True"
AlternateRowBackground
=
"Transparent"
RowIndicatorVisibility
=
"Collapsed"
Background
=
"{StaticResource GridBG}"
>
<
telerikgridview:RadTreeListView.HeaderRowStyle
>
<
Style
TargetType
=
"gridView:GridViewHeaderRow"
>
<
Setter
Property
=
"BorderBrush"
Value
=
"#FFB7E8EF"
/>
<
Setter
Property
=
"BorderThickness"
Value
=
"0"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource GridHeaderRowBG}"
/>
<
Setter
Property
=
"Foreground"
Value
=
"White"
/>
<
Setter
Property
=
"HorizontalAlignment"
Value
=
"Center"
/>
</
Style
>
</
telerikgridview:RadTreeListView.HeaderRowStyle
>
<
telerikgridview:RadTreeListView.Columns
>
<
telerikgridview:GridViewDataColumn
IsVisible
=
"False"
UniqueName
=
"ChkPrc"
HeaderCellStyle
=
"{StaticResource MyHeaderCellStyle}"
Header
=
"Select"
>
<
telerikgridview:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
Grid
Width
=
"Auto"
>
<
CheckBox
Name
=
"ChkPrc"
Click
=
"ChkPrc_Click"
VerticalAlignment
=
"Center"
></
CheckBox
>
</
Grid
>
</
DataTemplate
>
</
telerikgridview:GridViewDataColumn.CellTemplate
>
</
telerikgridview:GridViewDataColumn
>
...............
</ScrollViewer>
Thanks and Regards,
V.Chocks.