Hide PivotAggregateDescriptorContainer

3 posts, 1 answers
  1. Alex Dybenko
    Alex Dybenko avatar
    161 posts
    Member since:
    Jan 2005

    Posted 06 Feb 2018 Link to this post

    Hi,

    How can I hide PivotAggregateDescriptorContainer in code? Is it something like ShowFilterArea property, but for Aggregates area? Can't find one...

    Thanks

    Alex


  2. Answer
    Hristo
    Admin
    Hristo avatar
    1522 posts

    Posted 07 Feb 2018 Link to this post

    Hello Alex, 

    Thank you for writing

    You can set the visibility of the element to Collapsed. Please note that with this approach you will see the back color of the RadPivotGridElement which in the ControlDefault theme is white:
    this.radPivotGrid1.PivotGridElement.AggregateDescriptorsArea.Visibility = ElementVisibility.Collapsed;

    If this does not fit your local setup you can try collapsing the aggregate description elements: 
    public RadForm1()
    {
        //Set up the control
        this.radPivotGrid1.AggregateDescriptorElementCreating += RadPivotGrid1_AggregateDescriptorElementCreating;
    }
     
    private void RadPivotGrid1_AggregateDescriptorElementCreating(object sender, AggregateDescriptorElementCreatingEventArgs e)
    {
        e.AggregateDescriptorElement.Visibility = ElementVisibility.Collapsed;
    }

    I am sending you attached a screenshot showing the result after handling the event.

    Regards,
    Hristo
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Alex Dybenko
    Alex Dybenko avatar
    161 posts
    Member since:
    Jan 2005

    Posted 08 Feb 2018 in reply to Hristo Link to this post

    Thanks Hristo!

    I found radPivotGrid1.PivotGridElement.AggregateDescriptorsArea, but missed Visibility property. Anyway - your second approach works better.

    Alex

Back to Top