Hi
I'm trying to data-bind the IsPinned-property of the GridViewRow to a value from my model.
After numerous unsuccessful tries, I tried setting the IsPinned property to true through a style (see below).
However, the row is not pinned, also the button does not reflect the Pinned state.
How can I set the IsPinned-property through a property of my model?
01.
<
telerik:RadGridView
Grid.Row
=
"2"
ItemsSource
=
"{Binding Path=CalculablePersons}"
GroupRenderMode
=
"Flat"
PinnedRowsPosition
=
"Top"
>
02.
<
telerik:RadGridView.Resources
>
03.
<
Style
TargetType
=
"{x:Type telerik:GridViewRow}"
BasedOn
=
"{StaticResource {x:Type telerik:GridViewRow}}"
>
04.
<
Setter
Property
=
"IsPinned"
Value
=
"True"
/>
05.
</
Style
>
06.
</
telerik:RadGridView.Resources
>
07.
08.
<
telerik:RadGridView.Columns
>
09.
<
telerik:GridViewPinRowColumn
/>
10.
<
telerik:GridViewDataColumn
Header
=
"Name"
DataMemberBinding
=
"{Binding Path=Name}"
/>
11.
</
telerik:RadGridView.Columns
>
12.
</
telerik:RadGridView
>