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

Get list of GroupDescriptor which are filtered

2 Answers 90 Views
PivotGrid and PivotFieldList
This is a migrated thread and some comments may be shown as answers.
Deepak
Top achievements
Rank 1
Deepak asked on 12 Oct 2016, 11:41 AM

Hello

Two questions 

1. I have filtered few elements in Row/Column Group Descriptor. On a button click i want a list of GroupDescriptor which are being filtered.

Like in screenshot attached, i want when click on a button Vintage, Commodity, Period should be shown in messagebox as these are filtered ones.

 

2. I want to make one global flag to be true if we do any kind of change in my PivotGrid. Like Drag/Drop, Filtering, Sorting or any thing.

 

 

 

 

2 Answers, 1 is accepted

Sort by
0
Deepak
Top achievements
Rank 1
answered on 13 Oct 2016, 06:55 AM
Can any one help me out with this please ?
0
Hristo
Telerik team
answered on 13 Oct 2016, 11:25 AM
Hi Deepak,

Thank you for writing.

You can iterate the row or column groups descriptions and check if the any of the items has an applied GroupFilter
private void radButton1_Click(object sender, EventArgs e)
{
    LocalDataSourceProvider provider = (LocalDataSourceProvider)this.radPivotGrid1.DataProvider;
    foreach (PropertyGroupDescriptionBase row in provider.RowGroupDescriptions)
    {
        if (row.GroupFilter != null)
        {
            //...
        }
    }
}

Regarding your other question, you can subscribe to the RadPivotGrid.UpdateCompleted event. Additionally, you may also consider handling the RadPivotFieldList.DragDropService.Started  and RadPivotFieldList.DragDropService.Stopped events.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms. For more information check out this blog post and share your thoughts.
Tags
PivotGrid and PivotFieldList
Asked by
Deepak
Top achievements
Rank 1
Answers by
Deepak
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or