Hieracrhical Band icon indent
Hieracrhical Band icon indent
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? 2. Is it possible to change the '+' and '-'' icons to something else like an open or closed folder icon?
Thank you,
Carl
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? 2. Is it possible to change the '+' and '-'' icons to something else like an open or closed folder icon?
Thank you,
Carl
Re: Hieracrhical Band icon indent
I should have also mentioned that I am working with Stimulsoft 2021.1.1 from 15 January 2021, ASP.NET, JS.
Thanks,
Carl
Thanks,
Carl
-
- Posts: 6244
- Joined: Tue Mar 20, 2018 5:34 am
Re: Hieracrhical Band icon indent
Hello,
Unfortunately, it is not possible.
Thank you.
Unfortunately, it is not possible.
Thank you.
Re: Hieracrhical Band icon indent
OK - Thank you Lech.
Re: Hieracrhical Band icon indent
Hello,
You are welcome.
Sorry.
You are welcome.
Sorry.
Re: Hieracrhical Band icon indent
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? 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
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? 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 103 times
-
- AssetHierarchy.zip
- (1.12 MiB) Downloaded 130 times
-
- Posts: 6244
- Joined: Tue Mar 20, 2018 5:34 am
Re: Hieracrhical Band icon indent
Hello,
You can save your report as .cs class add to the VS project and use debugging to check events, values, etc.
Thank you.
You can save your report as .cs class add to the VS project and use debugging to check events, values, etc.
Thank you.
Re: Hieracrhical Band icon indent
Thanks for the suggestion Lech, but it doesn't really answer my questions.
Carl
Carl