This question is locked. New answers and comments are not allowed.
I have a GridView that is bound to a "SearchResult" object. Within this "SearchResult" object, is another "ChaserAssociation" object. I have a column in my GridView that I am using the CellTemplate approach with, because I want to access specific properties within the "ChaserAssociation" object in this column.
I would also love to utilize the built-in sorting for this column. I have tried multiple combinations of specifying a SortMemberPath property, but no matter what combination I try, I always recieve this error message:
XamlParseException occured: Element is already the child of another element. [Line: 0 Position: 0]
Here is my GridView, the column that is causing me issues is the "Associated To" column:
Thanks for your help!
Stacey
I would also love to utilize the built-in sorting for this column. I have tried multiple combinations of specifying a SortMemberPath property, but no matter what combination I try, I always recieve this error message:
XamlParseException occured: Element is already the child of another element. [Line: 0 Position: 0]
Here is my GridView, the column that is causing me issues is the "Associated To" column:
<telerik:RadGridView x:Name="RadResultsGridTest" Margin="0, 5, 0, 0" IsReadOnly="True" FontWeight="Bold" AutoGenerateColumns="False" ShowGroupPanel="False" telerik:StyleManager.Theme="Windows7" SelectionMode="Extended" ItemsSource="{Binding SearchResults}"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Header="Due Date" DataMemberBinding="{Binding DueDate, StringFormat=d}"/> <telerik:GridViewDataColumn Header="Category" DataMemberBinding="{Binding Category.Description}"/> <telerik:GridViewDataColumn Header="Title" DataMemberBinding="{Binding Title}"/> <telerik:GridViewDataColumn Header="Associated To" Width="*" SortMemberPath="{Binding AssociatedToDisplayDescription}"> <telerik:GridViewDataColumn.CellTemplate> <DataTemplate> <HyperlinkButton Content="{Binding AssociatedToDisplayDescription}" CommandParameter="{Binding ChaserAssociation}" Command="{Binding Source={StaticResource DataContextProxy}, Path=DataSource.AssociateCommand}" /> </DataTemplate> </telerik:GridViewDataColumn.CellTemplate> </telerik:GridViewDataColumn> </telerik:RadGridView.Columns> </telerik:RadGridView>Thanks for your help!
Stacey