I appreciate all your help.
4 Answers, 1 is accepted
Could you clarify a bit? Which row should be considered as select? A group that has its header clicked or any group that has just been expanded?
Kind regards,
Milan
the Telerik team
Thank you for your reply.
I need to know when the Group Row is selected. In my case, when the row is clicked by the user -- selected -- the group row expands to show the underlying records. To clarify, the group row is the row which has the group expander and group aggregates as defined at the bottom of this page http://www.telerik.com/help/silverlight/gridview-visual-structure.html. I need to know when the user selects the row and some indication as to what aggregates are a part of that grouping.
Thank you for your time.
We currently do not have events that signal which is the selected group but most probably we will such events in the near future. In the mean time you can use the following workaround:
public MainPage() { InitializeComponent(); this.playersGrid.AddHandler(FrameworkElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(OnGridMouseDown), true); } private void OnGridMouseDown(object sender, MouseButtonEventArgs e) { if (this.playersGrid.IsGrouping) { var senderElement = e.OriginalSource as FrameworkElement; var parentRow = senderElement.ParentOfType<GridViewRow>(); var parentGroupRow = senderElement.ParentOfType<GridViewGroupRow>(); // gorup header was clicked if (parentRow == null && parentGroupRow != null) { // provides information line AggregateResults, etc //parentGroupRow.GroupViewModel; } } }You can also vote for this feature request which is about adding Group Expanded / GroupCollaped events to RadGridView.
Regards,Milan
the Telerik team
Here is the link.
Greetings,
Milan
the Telerik team