Please watch the attached video for a demonstration of the issue that I am trying to address.
Here's what's happening. I have a multi-tabbed page. When the user moves from one tab to another, I load a new diagram from the database. This works fine. The issue is that if the user vertically repositions a diagram and then switches to another tab (another diagram), the scroll position does not change. This can give the user the illusion that part of their diagram is off-canvas - as the video shows.
Is there any way I can cause the diagram to scroll to the top when I load it?
SGShyam G Syncfusion Team June 19, 2015 01:08 PM UTC
Thanks for using Syncfusion products.
Before looking into your requirement, could you please confirm us whether the switching between the different tab has been done in a single diagram? If yes, could you please provide us whether you are refreshing the entire page of a diagram or calling the API method load in the tab? This will help us to verify further and will provide a better solution. If you are rendering the diagram for each tab, we are unable to reproduce the reported issue at our end. please provide us more details such as aspx file that you have used in your application or modify the below sample to reproduce the reported issue at our end. This will help us to verify further and provide a better solution to you.
I only have a single ej Diagram control which I initialize once in code behind. What I do when the user selects a different tab is:
Save the diagram to the database if changes had been made
Issue a diagram.clear()
Call a web service to obtain the diagram for the new tab
Issue a diagram.load(...)
Is this a valid approach?
SGShyam G Syncfusion Team June 22, 2015 01:40 PM UTC
Thanks for your update.
Currently we don’t have support to serialize the scroll position and panning the diagram. We have confirmed this as a feature and logged a report on this. Also we have created a support incident under your account to track the status of this issue.
Please log on to our support website to check for further updates.