This is a migrated thread and some comments may be shown as answers.

[Solved] RadGridView -- Filtering and Grouping display values

2 Answers 223 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Erin
Top achievements
Rank 1
Erin asked on 12 Feb 2011, 01:33 AM
I have a grid that includes a column bound to a GUID.  I'm using a Template to display that GUID as the corresponding employee's name rather than ID; my question is whether it's possible to group and filter by the display values rather than actual values.

This is the column setup I have tried:
<tk:GridViewDataColumn DataMemberBinding="{Binding TaskOwner}" CellTemplate="{StaticResource tPlayer}" GroupHeaderTemplate="{StaticResource tPlayer}" Header="Owner" />
Right now it's simply displaying the grouped rows as blank.  

Here is the Template I'm using: 
<DataTemplate x:Key="tPlayer">
<Grid>
<TextBlock Text="{Binding TaskOwner, Converter={StaticResource CellConvert}}" />
</Grid>
</DataTemplate>

The referenced Converter (CellConvert) is used to match the GUID to the existing set of employees.  

Thank you in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 14 Feb 2011, 05:44 PM
Hello Erin,

I am sending you a sample project illustrating how you may achieve the desired result by using the IValueConverter. Let me know if it helps.
 

All the best,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Erin
Top achievements
Rank 1
answered on 14 Feb 2011, 10:26 PM
It worked perfectly, thank you!
Tags
GridView
Asked by
Erin
Top achievements
Rank 1
Answers by
Maya
Telerik team
Erin
Top achievements
Rank 1
Share this question
or