|
S.No |
Query |
Response |
|
1 |
I would like to loop through groups and for each group loop through the nodes in that group.
With:
foreach (GroupVM gr in (this.SelectedDiagram as FlowDiagramVm) .GroupCollection
I managed to loop through groups, but I don’t see the nodes in each group, gr.Nodes is empty.
How can I do that?
|
We have checked this issue in 18.2.0.44 version and could not able to reproduce the issue. Could you please let us know your product(SfDiagram) version? This helps us to resolve the issue at the earliest. |
|
2 |
Did I understand correctly - that subgroups of nodes (a group inside a group) don’t exist in this example? If so, is there an easy way to add this functionality?
Thank you!
|
Yes. That subgroup logic is not available in that sample.
We have internally fixed the issue with nested group (group inside group) creation at runtime. We will include the fix in our next weekly nuget release which will be available on 4th August, 2020.
If you need patch for this fix please revert us with your version details.
Note: We will provide patch in our Main and SP release versions only.
|
|
S.No |
Query |
Response | ||
|
1 |
I would like to loop through groups and for each group loop through the nodes in that group.
With:
foreach (GroupVM gr in (this.SelectedDiagram as FlowDiagramVm) .GroupCollection
I managed to loop through groups, but I don’t see the nodes in each group, gr.Nodes is empty.
How can I do that? |
We have support to achieve the queries 1,3 and 4 in our latest version. So, we request you to upgrade to our latest version 18.2.0.44. Since, it’s a major change we could not able to provide patch in older versions.
Query 1:
We can able to get the group child Node details from the group. We have provided sample and video to represent this. Please refer to them as below.
Query 3:
Yes, we can include a node to the existing group by adding the required node to the Nodes collection of the Group.
Code Example:
Query 4:
We have support to achieve this using ShapeStyle property of Group.
Code Example:
Sample Link:
Video Link:
| ||
|
3 |
Can I change the group so it will be possible to include one node in a group? | |||
|
4 |
Can I make the group visible (for example with transparency) even when it is not selected? | |||
|
2 |
Did I understand correctly - that subgroups of nodes (a group inside a group) don’t exist in this example? If so, is there an easy way to add this functionality? |
As we updated earlier, we will include the fix in our next weekly nuget release which will be available on 4th August, 2020.
If you need patch for this fix please revert us with your version details.
Note: We will provide patch for this fix in our latest Main release version 18.2.0.44 only.
|
<Style TargetType="Syncfusion:Group">
<Setter Property="Shape"
Value="{StaticResource Rectangle}"></Setter>
<Setter Property="ShapeStyle">
<Setter.Value>
<Style TargetType="Path">
<Setter Property="Stretch"
Value="Fill"></Setter>
<Setter Property="Fill"
Value="LightBlue"></Setter>
<Setter Property="Stroke"
Value="Blue"></Setter>
</Style>
</Setter.Value>
</Setter>
</Style>
| S.No | Query | Response | |
| 1 |
I would like it to be possible for a group to contain only one node, is it possible to do it easily? |
Yes.It is possible to create group with single node while creating group through code-behind. Code Example:
| |
| 2 |
I ended up making the groups visible by using the XAML code from the sample you've provided that was commented out, my question is, can I add transparency?
I'm thinking of percents of transparency, like 50 percent - and then two groups intersecting each other will look darker in the intersecting area. |
We suspect that your requirement is to set opacity for the group.We have provided code to represent this.Please refer to the code example as below. Code Example:
|