This question is locked. New answers and comments are not allowed.
Hi,
I want to group the data in a Grid by a column in a specific sort order. I have specified the order in the SQL Query and the data is returned in the correct way.
But when grouping it to a RAD Grid it groups it alphabetically.for that column specified in the PropertyName
What I want is to group by the column specified in the SQL query.
I went through the DelegateGroupDescriptor and wrote the following Code
and in the XAML file
But I am getting an error which says that CustomIKeyLookup is not a member of the class file where the XAML code resides.
What exactly is wrong in this case.
And I went through this thread with a similar doubt (http://www.telerik.com/forums/custom-sorting-of-grouping). But it never used the DelegateGroupDescriptor. Why is this so.
Thanks,
Rajesh.
I want to group the data in a Grid by a column in a specific sort order. I have specified the order in the SQL Query and the data is returned in the correct way.
But when grouping it to a RAD Grid it groups it alphabetically.for that column specified in the PropertyName
<telerikGrid:RadDataGrid.GroupDescriptors> <telerikGrid:PropertyGroupDescriptor PropertyName="Room" /></telerikGrid:RadDataGrid.GroupDescriptors>What I want is to group by the column specified in the SQL query.
I went through the DelegateGroupDescriptor and wrote the following Code
public class CustomIKeyLookup : IKeyLookup { public object GetKey(object instance) { return (instance as QuestionDetails).CategoryID; } }and in the XAML file
<telerikGrid:DelegateGroupDescriptor> <telerikGrid:DelegateGroupDescriptor.KeyLookup> <local:CustomIKeyLookup /> </telerikGrid:DelegateGroupDescriptor.KeyLookup></telerikGrid:DelegateGroupDescriptor>But I am getting an error which says that CustomIKeyLookup is not a member of the class file where the XAML code resides.
What exactly is wrong in this case.
And I went through this thread with a similar doubt (http://www.telerik.com/forums/custom-sorting-of-grouping). But it never used the DelegateGroupDescriptor. Why is this so.
Thanks,
Rajesh.