Hi, it seems there are no similar questions about this.
I would like to enable/disable the aggregates toolbar on user's demand. I have implemented it such way inside the GridComponent:
{(state.aggregate &&
<AggregatesDirective>
<AggregateDirective>
<AggregateColumnsDirective>
<AggregateColumnDirective ... />
</AggregateColumnsDirective>
</AggregateDirective>
</AggregatesDirective>
})}The state.aggregate is a boolean variable stored in the state, enabled/disabled on user's demand outside the GridComponent.
It doesn't seem to be working. The aggregates won't disappear when state.aggregate is set to false.
How can I make it disappear?
Best regards