This question is locked. New answers and comments are not allowed.
We have a data column that is databound to an object (rather than a value) to allow for multiple databindings in the cell template. Sorting doesn't appear to work for this column because the sort function doesn't know what value to apply the sort to.
We added a Sorting event to the RadGridView and this column never fires the event. The other columns (which are using doubles as values) are able to fire the event. How can we apply a custom sort on this column to databind to the Item but sort by the Item's "Label" property?
<telerikGridView:GridViewDataColumn Header="Region" UniqueName="Region" DataMemberBinding="{Binding Path=.}" IsSortable="True"> <telerikGridView:GridViewDataColumn.CellTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <Button Style="{StaticResource EyeGlassButtonStyle}" Margin="5,0,10,0" Command="{Binding Path=VM.GetContentCommand}" CommandParameter="{Binding ContentId}" /> <HyperlinkButton Content="{Binding Label}" Command="{Binding Path=VM.GetContentCommand}" CommandParameter="{Binding ContentId}" /> </StackPanel> </DataTemplate> </telerikGridView:GridViewDataColumn.CellTemplate> </telerikGridView:GridViewDataColumn>We added a Sorting event to the RadGridView and this column never fires the event. The other columns (which are using doubles as values) are able to fire the event. How can we apply a custom sort on this column to databind to the Item but sort by the Item's "Label" property?