Layout only updates when leaving and reentering a user control unless RefreshFrequency is set to ArrangeParsing
Running the UpdateLayout method does nothing. If I set RefreshFrequency to ArrangeParsing it works, but performance takes a significant hit over 100 nodes (even with virtualization turned on). Hoping that this is another easy one.
SIGN IN To post a reply.
4 Replies
JS
Jayanthi Sivabalan
Syncfusion Team
December 15, 2017 11:03 AM UTC
Hi Nathan,
Thanks for the update.
Please find the response for the reported issue.
|
Sl.No. |
Reported issue |
Response | |
|
1 |
Running the UpdateLayout method does nothing |
Size of a node is required to update the layout properly. When new nodes are added into diagram, its size will be known only after they are visually loaded. So, layout cannot be refreshed, immediately after adding nodes and connector.
To overcome this issue, please force update the page visually and then call UpdateLayout as shown in code example.
Code example:
Also we have provided sample to represent this. Please refer the sample link as below.
Sample link: http://www.syncfusion.com/downloads/support/forum/135068/ze/135024_DataSource-1667483163
| |
|
However, we will consider this as an enhancement. Where you can InvalidateLayout, diagram will automatically take care of ‘when to update the layout with the recent changes?’. | |||
|
2 |
If I set RefreshFrequency to ArrangeParsing it works, but performance takes a significant hit over 100 nodes (even with virtualization turned on) |
We have confirmed that the reported issue as a defect. We have created incident for this. Please follow-up with that incident for further updates regarding this. |
Please let us know if you have any further assistance on this.
Regards,
Jayanthi S.
NZ
Nathan Ziehnert
December 15, 2017 04:24 PM UTC
Thank you - that worked splendidly. However, the call to update page elements and update the layout seems to lock the UI thread while it processes. Is there anyway around this?
JS
Jayanthi Sivabalan
Syncfusion Team
December 18, 2017 04:30 PM UTC
Hi Nathan,
Thanks for the update.
We are currently analyzing to find the workaround for the reported issue. We will update the status on December 19th , 2017.
Regards,
Jayanthi S.
JS
Jayanthi Sivabalan
Syncfusion Team
December 19, 2017 11:43 AM UTC
Hi Nathan,
Reported issue:” update page elements and update the layout seems to lock the UI thread while it processes”
We have created incident for the reported issue. Please follow-up with that incident for further updates regarding this.
Regards,
Jayanthi S.
SIGN IN To post a reply.
- 4 Replies
- 2 Participants
-
NZ Nathan Ziehnert
- Dec 14, 2017 08:56 PM UTC
- Dec 19, 2017 11:43 AM UTC