Dynamic grouping

Stimulsoft Reports.JS discussion
Post Reply
ga6riel
Posts: 10
Joined: Mon May 13, 2019 1:58 pm

Dynamic grouping

Post by ga6riel »

Hi,

How can I create a new Group Header Band and set a data column and a sort direction into it?

There is a javascript code to do it dynamically?

Thanks,

Gabriel Brunichaki
Lech Kulikowski
Posts: 7291
Joined: Tue Mar 20, 2018 5:34 am

Re: Dynamic grouping

Post by Lech Kulikowski »

Hello,

Please check the following sample:
https://www.stimulsoft.com/en/samples/j ... -from-code

Thank you.
ga6riel
Posts: 10
Joined: Mon May 13, 2019 1:58 pm

Re: Dynamic grouping

Post by ga6riel »

Hello,

This will help me a lot! Thank you!

Just one more question: how can I delete a component?
Lech Kulikowski
Posts: 7291
Joined: Tue Mar 20, 2018 5:34 am

Re: Dynamic grouping

Post by Lech Kulikowski »

Hello,

You can use the following code:
componentContainer.components.remove(necessaryComponent);

where componentContainer- it is a component on which placed removed component - page, header, band etc.

Thank you.
Post Reply