Hieracrhical Band icon indent

Stimulsoft Reports.WEB discussion
Post Reply
cbrydon
Posts: 173
Joined: Fri May 30, 2014 4:37 pm

Hieracrhical Band icon indent

Post by cbrydon »

Hello,

I am working on a hierarchical band with collapsing enabled and have a coupe of questions.

1. When the report runs all of the '+' and '-' icons appear left-justified. Is it possible to have them indent with each level?
facTree.JPG
facTree.JPG (21.18 KiB) Viewed 1541 times
2. Is it possible to change the '+' and '-'' icons to something else like an open or closed folder icon?

Thank you,
Carl
cbrydon
Posts: 173
Joined: Fri May 30, 2014 4:37 pm

Re: Hieracrhical Band icon indent

Post by cbrydon »

I should have also mentioned that I am working with Stimulsoft 2021.1.1 from 15 January 2021, ASP.NET, JS.

Thanks,
Carl
Lech Kulikowski
Posts: 6163
Joined: Tue Mar 20, 2018 5:34 am

Re: Hieracrhical Band icon indent

Post by Lech Kulikowski »

Hello,

Unfortunately, it is not possible.

Thank you.
cbrydon
Posts: 173
Joined: Fri May 30, 2014 4:37 pm

Re: Hieracrhical Band icon indent

Post by cbrydon »

OK - Thank you Lech.
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: Hieracrhical Band icon indent

Post by Andrew »

Hello,

You are welcome.
Sorry.
cbrydon
Posts: 173
Joined: Fri May 30, 2014 4:37 pm

Re: Hieracrhical Band icon indent

Post by cbrydon »

Andrew/Lech,

I have a few more questions about the hierarchy report I've been working with and have attached it and some sample data.

1. I know you mentioned earlier that the +/- icons showing whether something is collapsed cannot be indented with each
level, but the documentation for dynamic collapsing seems to show that it can be done. Is that capability only available in certain
development environments?
Tree.JPG
Tree.JPG (35.21 KiB) Viewed 1462 times
2. I have used the following in the BeginRender event of the Hierarchical Band to determine the indent level for each node in the
hierarchy...
varLevel = (sender as StiHierarchicalBand).DataSource.GetLevel();
Is there a similar expression that would tell me whether a given level was collapsed or not? I have tried the following without any
success.
varTest = (sender as StiHierarchicalBand).DataSource.GetCollapsedValue();
varTest = (sender as StiHierarchicalBand).DataSource.CollapsedValue();
varTest = (sender as StiHierarchicalBand).GetCollapsedValue();
varTest = (sender as StiHierarchicalBand).CollapsedValue();
varTest = HierarchicalBand1.GetCollapsedValue();
varTest = HierarchicalBand1.CollapsedValue();

3. I have the Hierarchical Band set to Collapse All when the report first loads. If I expand the Kinlock Water Plant node, I can see three
nodes at level 1 - Electrical Components, Mechanical Components, and Building Envelope - this is what I expect and want to see.
However if I then expand Building Envelope, none of its subcomponents display. The only way I can get the Building Envelope sub-components
to show up is if I expand Electrical Components first, Mechanical Components second and Building Envelope third. If there a setting or some
snippet of code I can use in one of the events to help deal with this, so I can see what is under the Building Envelope node without expanding
the Electrical and Mechanical nodes?

Thank You,
Carl
Attachments
AssetHierarchy.zip
(1.12 MiB) Downloaded 102 times
AssetHierarchy.zip
(1.12 MiB) Downloaded 127 times
Lech Kulikowski
Posts: 6163
Joined: Tue Mar 20, 2018 5:34 am

Re: Hieracrhical Band icon indent

Post by Lech Kulikowski »

Hello,

You can save your report as .cs class add to the VS project and use debugging to check events, values, etc.

Thank you.
cbrydon
Posts: 173
Joined: Fri May 30, 2014 4:37 pm

Re: Hieracrhical Band icon indent

Post by cbrydon »

Thanks for the suggestion Lech, but it doesn't really answer my questions.

Carl
Post Reply