I have used grouping and filtering programmatically in my application by following the post below.
http://www.telerik.com/community/forums/wpf/gridview/group-aggregate-without-displaying-the-group-panel.aspx
But after I upgraded my controls to 2012 Q1, the grouping event is not triggered at all.
6 Answers, 1 is accepted

Actually, this is by design. The Grouping event is raised when the data in RadGridView is grouped from the UI. You can use GroupDescriptors_CollectionChanging event instead.
I hope this helps.
Vera
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

I have modified the project attached in the forum thread using binaries from Q2 2012. Please take a look at it.
Let me know in case further assistance is needed.
Vera
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

private void Button1_Click(object sender, RoutedEventArgs e)
{
_groupview = new QueryableCollectionView(FODListGrid.Items);
var descriptor = new GroupDescriptor() { Member = "Country" };
descriptor.AggregateFunctions.Add(new CountFunction());
this.ListGrid.GroupDescriptors.Add(descriptor);
}
Then when I wish to display these groups I have code like:
foreach (QueryableCollectionViewGroup catgroup in _groupview.Groups)
{
}
But the _groupview.Groups is null
Actually, the groups are expected to be null. In order to get the groups you can use e.NewItems and e.OldItems of GroupDescriptors_CollectionChanged event. See the code bellow:
foreach (GroupDescriptor item in e.NewItems
{I hope this helps.
Regards,
Vera
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>