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

Hide PivotAggregateDescriptorContainer

2 Answers 72 Views
PivotGrid and PivotFieldList
This is a migrated thread and some comments may be shown as answers.
Alex Dybenko
Top achievements
Rank 2
Alex Dybenko asked on 06 Feb 2018, 08:19 AM

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 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 07 Feb 2018, 02:50 PM
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.
0
Alex Dybenko
Top achievements
Rank 2
answered on 08 Feb 2018, 08:28 AM

Thanks Hristo!

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

Alex

Tags
PivotGrid and PivotFieldList
Asked by
Alex Dybenko
Top achievements
Rank 2
Answers by
Hristo
Telerik team
Alex Dybenko
Top achievements
Rank 2
Share this question
or