What are the Events Fired when the Group is Expanded or Expanding

3 Jan 20202 minutes to read

Following are the events fired when the group is expanding or expanded.

//Shows the GroupExpanding event.
private void gridGroupingControl1_GroupExpanding(object sender, Syncfusion.Grouping.GroupEventArgs e)
{
//Shows all the records in the group, which is being Expanded.
    foreach(Record r in e.Group.Records)
    {
        Console.WriteLine("Expanding event "+r.Info);
    }
}

//Shows the GroupExpanded event.
private void gridGroupingControl1_GroupExpanded(object sender, Syncfusion.Grouping.GroupEventArgs e)
{
//Shows all the records in the group, which has expanded.
    foreach(Record r in e.Group.Records)
    {
        Console.WriteLine("Expanded event "+r.Info);
    }
}
//Shows the GroupExpanding event.
private void gridGroupingControl1_GroupExpanding(object sender, Syncfusion.Grouping.GroupEventArgs e)
{
// Shows all the records in the group, which is being Expanded.
    foreach(Record r in e.Group.Records)
    {
        Console.WriteLine("Expanding event "+r.Info);
    }
}

//Shows the GroupExpanded event.
private void gridGroupingControl1_GroupExpanded(object sender, Syncfusion.Grouping.GroupEventArgs e)
{
//Shows all the records in the group, which has expanded.
    foreach(Record r in e.Group.Records)
    {
        Console.WriteLine("Expanded event "+r.Info);
    }
}