I have a the following column definition: I want to be able to sort this column on the Sailor.Name property. How do I accomplish this?
Thanks in advance,
Billy Jacobs
Thanks in advance,
<
telerik:GridViewColumn
Width
=
"*"
Header
=
"Sailor"
IsSortable
=
"True"
>
<
telerik:GridViewColumn.CellTemplate
>
<
DataTemplate
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
TextBlock
Text
=
"{Binding Name}"
/>
<
Image
Source
=
"{DynamicResource User_Man_Padlock}"
Grid.Column
=
"1"
Margin
=
"0,0,10,0"
ToolTip
=
"{Binding DetailRequisitionAssignedTo, Converter={StaticResource DetailRequisitionConverter}}"
Height
=
"15"
>
<
Image.Visibility
>
<
MultiBinding
Converter
=
"{StaticResource SailorLockVisibilityConverter}"
ConverterParameter
=
"Left"
>
<
Binding
Path
=
"DetailRequisitionAssignedTo"
/>
<
Binding
RelativeSource
=
"{RelativeSource AncestorType={x:Type local:MainWindow}}"
Path
=
"DataContext.SailorsOnLeft"
/>
<
Binding
RelativeSource
=
"{RelativeSource AncestorType={x:Type local:MainWindow}}"
Path
=
"DataContext.SelectedJobInformation"
/>
</
MultiBinding
>
</
Image.Visibility
>
</
Image
>
<
Image
Source
=
"{DynamicResource Padlock}"
Grid.Column
=
"1"
Margin
=
"0,0,10,0"
ToolTip
=
"{Binding DetailRequisitionAssignedTo, Converter={StaticResource DetailRequisitionConverter}}"
Height
=
"15"
>
<
Image.Visibility
>
<
MultiBinding
Converter
=
"{StaticResource SailorLockVisibilityConverter}"
ConverterParameter
=
"Right"
>
<
Binding
Path
=
"DetailRequisitionAssignedTo"
/>
<
Binding
RelativeSource
=
"{RelativeSource AncestorType={x:Type local:MainWindow}}"
Path
=
"DataContext.SailorsOnLeft"
/>
<
Binding
RelativeSource
=
"{RelativeSource AncestorType={x:Type local:MainWindow}}"
Path
=
"DataContext.SelectedJobInformation"
/>
</
MultiBinding
>
</
Image.Visibility
>
</
Image
>
<
Image
Source
=
"{DynamicResource User_Man_Padlock}"
Grid.Column
=
"1"
Margin
=
"0,0,10,0"
ToolTip
=
"{Binding DetailRequisitionAssignedTo, Converter={StaticResource DetailRequisitionConverter}}"
Height
=
"15"
>
<
Image.Visibility
>
<
MultiBinding
Converter
=
"{StaticResource SailorLockVisibilityConverter}"
ConverterParameter
=
"AssignedTo"
>
<
Binding
Path
=
"DetailRequisitionAssignedTo"
/>
<
Binding
RelativeSource
=
"{RelativeSource AncestorType={x:Type local:MainWindow}}"
Path
=
"DataContext.SailorsOnLeft"
/>
<
Binding
RelativeSource
=
"{RelativeSource AncestorType={x:Type local:MainWindow}}"
Path
=
"DataContext.SelectedJobInformation"
/>
</
MultiBinding
>
</
Image.Visibility
>
</
Image
>
</
Grid
>
</
DataTemplate
>
</
telerik:GridViewColumn.CellTemplate
>
</
telerik:GridViewColumn
>
Billy Jacobs