How to update BoundaryConstraints of nodes at run time?
I have given BoundaryConstraints.Infinity ,and in OnSelectionchanged method i need to update the boundary constraints to BoundaryConstraints.Page,but on dragging the nodes it is showing JS exception:
Maximum call stack size exceeded
RangeError: Maximum call stack size exceeded
BoundaryConstraints="@boundaryConstraints"
@code {
public BoundaryConstraints boundaryConstraints = BoundaryConstraints.Infinity;
public void OnSelectionchanged(IBlazorSelectionChangeEventArgs args)
{
boundaryConstraints = BoundaryConstraints.Page;
}
}
SIGN IN To post a reply.
6 Replies
AR
Aravind Ravi
Syncfusion Team
March 3, 2020 12:16 PM UTC
Hi Mounika,
When you change the boundary constraints from infinity to page at run time and if the node is outside the page height and width means you are not able to drag or resize the node. If page settings height and width are 500, 500 and node is in 300, 300 after changed the boundary constraints means you can able to drag or resize the node. However, console exception occurs while dragging the node outside page bounds has been considered as an issue. We have logged a defect report for this issue. We will fix this issue and include the fix for the issue in 2020 Volume 1 release.
When you change the boundary constraints from infinity to page at run time and if the node is outside the page height and width means you are not able to drag or resize the node. If page settings height and width are 500, 500 and node is in 300, 300 after changed the boundary constraints means you can able to drag or resize the node. However, console exception occurs while dragging the node outside page bounds has been considered as an issue. We have logged a defect report for this issue. We will fix this issue and include the fix for the issue in 2020 Volume 1 release.
Now, you can track the status of your issue through below feedback link.
Feedback Link: https://www.syncfusion.com/feedback/12478/exception-occurs-when-try-to-resize-the-node-outside-boundary-constraints
Regards
Aravind Ravi
MO
Mounika
March 3, 2020 02:35 PM UTC
Hi Aravind,
Thanks for the info,i am having the above exception when i am drawing the node at run time outside the diagram.How to make custom boundary constraints with x,y co-ordinates at runtime?
SK
Suganthi Karuppannan
Syncfusion Team
March 4, 2020 05:29 PM UTC
Hi Mounika,
Currently, we don’t have support for event triggered while nodes or connector added in a diagram, so we can consider this as a feature. In this feature, we will get the information after the node or connector added/removed in the diagram. Using this event, we cannot provide the cancel support, but we can return which node or connector is added/removed from the diagram. Is this functionality enough to satisfy your requirements? Once you confirm, we will consider this as a feature.
Note: During the event trigger, we can change the page width and height.
Regards,
Suganthi K.
MO
Mounika
March 5, 2020 11:17 AM UTC
Hi Suganthi,
Yes,this functionality satisfies to my requirement ( to some extent).Thank you.When will this new feature available?
Yes,this functionality satisfies to my requirement ( to some extent).Thank you.When will this new feature available?
SG
Shyam G
Syncfusion Team
March 6, 2020 08:41 AM UTC
Hi Mounika,
We have logged “CollectionChange event support in the blazor” as a feature. We don’t have immediate plan to implement this feature. We will implement it in any one of our upcoming releases. You can track the status of the feature from the below link.
Feedback link: https://www.syncfusion.com/feedback/12547/collectionchange-event-support-in-the-blazor
Regards,
Shyam G
AR
Aravind Ravi
Syncfusion Team
April 3, 2020 09:48 AM UTC
Hi Mounika,
The reported issue Exception occurs when try to resize the node outside boundary constraints has been fixed and included in volume 1, 2020 release (v18-1-0-42) which is rolled out and available for download under the following link.
The reported issue Exception occurs when try to resize the node outside boundary constraints has been fixed and included in volume 1, 2020 release (v18-1-0-42) which is rolled out and available for download under the following link.
https://www.syncfusion.com/forums/152921/essential-studio-2020-volume-1-release-v18-1-0-42-is-available-for-download
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance
Regards
Aravind Ravi
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance
Regards
Aravind Ravi
SIGN IN To post a reply.
- 6 Replies
- 4 Participants
-
MO Mounika
- Mar 2, 2020 12:19 PM UTC
- Apr 3, 2020 09:48 AM UTC