This is a migrated thread and some comments may be shown as answers.

Grouping Event not Firing!!!!

5 Answers 172 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 28 Apr 2011, 03:55 PM
I'm trying to get a handle to the Grouping Event but I'm not having any luck.
Please Help.

5 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 28 Apr 2011, 04:04 PM
Hi Brandon,

You may subscribe to the Grouping event either from xaml or from the code-behind:

XAML:
 <telerik:RadGridView Name="clubsGrid"
                    Grouping="clubsGrid_Grouping"
                                        ItemsSource="{Binding Clubs}" >
 
C#:
public MainPage()
        {
            InitializeComponent();         
            this.clubsGrid.Grouping+=new EventHandler<GridViewGroupingEventArgs>(clubsGrid_Grouping);
        }
private void clubsGrid_Grouping(object sender, GridViewGroupingEventArgs e)
        {
 
        }

Furthermore, you may take a look at our online documentation and demos for a reference. 

Best wishes,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Brandon
Top achievements
Rank 1
answered on 28 Apr 2011, 07:44 PM
This is exactly what I have but it's not firing this event nor the DataLoaded event.
0
Yavor Georgiev
Telerik team
answered on 28 Apr 2011, 08:05 PM
Hi Brandon,

 How are you grouping the RadGridView - by dragging and dropping a column header onto the GroupPanel or by manually adding a GroupDescriptor to the RadGridView?

Kind regards,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Brandon
Top achievements
Rank 1
answered on 28 Apr 2011, 08:15 PM
I am doing it manually. The GroupPanel is also hidden by choice.
0
Yavor Georgiev
Telerik team
answered on 28 Apr 2011, 08:22 PM
Hello Brandon,
 
 The Grouping and Grouped events only fire when a grouping operation (add, reorder or remove) is executed by a user using the GroupPanel.

 If you wish to detect all grouping changes, you can handle the CollectionChanged event of RadGridView's GroupDescriptors.

All the best,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Brandon
Top achievements
Rank 1
Answers by
Maya
Telerik team
Brandon
Top achievements
Rank 1
Yavor Georgiev
Telerik team
Share this question
or