When I set the HyperLink Button into the <telerik:RadGridView.GroupHeaderTemplate> to display the Customer No and click the HyperLink Button, I couldn't get the Customer ID from this event. The code is as below:
I think the method that is to set the CustomerID into the Command Parameter is wrong. However, I don't know how to set the value of Customer ID. Please give me some help and provide the sample code. Thanks so much.
By the way, the text of "Grouped by" wasn't displayed in the screen. There is a text of "Grouped by Country" in the "Grouping and Aggregates" in the page http://www.telerik.com/products/silverlight/gridview.aspx, which I want to achieve the feature. Unfortunately, the text of "Grouped by Customer No" have not achieved basing on above code.
Please do me a favor. Thanks so much again.
<telerik:RadGridView.GroupDescriptors> |
<telerik:GroupDescriptor Member="CustomerNo"> |
<telerik:GroupDescriptor.AggregateFunctions> |
<telerikData:MaxFunction SourceField="CustomerName" Caption="Customer Name:"/> |
</telerik:GroupDescriptor.AggregateFunctions> |
</telerik:GroupDescriptor> |
</telerik:RadGridView.GroupDescriptors> |
<telerik:RadGridView.GroupHeaderTemplate> |
<DataTemplate> |
<HyperlinkButton Content="{Binding Header}" commands:Click.Command="{Binding Path=Value, Source={StaticResource ViewCustomerProfileCommand}}". commands:Click.CommandParameter="{Binding CustomerID}"/> |
</DataTemplate> |
</telerik:RadGridView.GroupHeaderTemplate> |
I think the method that is to set the CustomerID into the Command Parameter is wrong. However, I don't know how to set the value of Customer ID. Please give me some help and provide the sample code. Thanks so much.
By the way, the text of "Grouped by" wasn't displayed in the screen. There is a text of "Grouped by Country" in the "Grouping and Aggregates" in the page http://www.telerik.com/products/silverlight/gridview.aspx, which I want to achieve the feature. Unfortunately, the text of "Grouped by Customer No" have not achieved basing on above code.
Please do me a favor. Thanks so much again.