Hi All
Is it possible to bind the one column to 2 fields?
The scenario is that we have a sales rep, which requires both first and last names in the one column. I have managed this with a datatemplate:
<!-- Sales Rep Name Template -->
<DataTemplate x:Key="SalesRepNameTemplate">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding user.first_name}" />
<TextBlock Text=" " />
<TextBlock Text="{Binding user.last_name}" />
</StackPanel>
</DataTemplate>
<telerikGridView:GridViewDataColumn Header="Sales Rep" CellTemplate="{StaticResource SalesRepNameTemplate}" />
But the issue is that this column can now not be sorted or grouped or filtered, which is also required.
How else would this be possible while still retaining sorting etc?
Is it possible to bind the one column to 2 fields?
The scenario is that we have a sales rep, which requires both first and last names in the one column. I have managed this with a datatemplate:
<!-- Sales Rep Name Template -->
<DataTemplate x:Key="SalesRepNameTemplate">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding user.first_name}" />
<TextBlock Text=" " />
<TextBlock Text="{Binding user.last_name}" />
</StackPanel>
</DataTemplate>
<telerikGridView:GridViewDataColumn Header="Sales Rep" CellTemplate="{StaticResource SalesRepNameTemplate}" />
But the issue is that this column can now not be sorted or grouped or filtered, which is also required.
How else would this be possible while still retaining sorting etc?