Get list of GroupDescriptor which are filtered

3 posts, 0 answers
  1. Deepak
    Deepak avatar
    10 posts
    Member since:
    May 2016

    Posted 12 Oct Link to this post

    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. Deepak
    Deepak avatar
    10 posts
    Member since:
    May 2016

    Posted 13 Oct in reply to Deepak Link to this post

    Can any one help me out with this please ?
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Hristo Merdjanov
    Admin
    Hristo Merdjanov avatar
    710 posts

    Posted 13 Oct Link to this post

    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.
Back to Top