We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Loading diagram from web service - displays briefly, then disappears

Thread ID:





117480 Oct 28,2014 05:59 PM UTC Oct 31,2014 05:19 AM UTC ASP.NET Web Forms 3
Tags: Diagram
Jim Jacobs
Asked On October 28, 2014 05:59 PM UTC


I have been playing with the sample Diagram Builder that was provided to me.
It's great, but I want to use a database rather than local storage.
I have written web services that save and retrieve the diagram data, but am having a challenge.
When I retrieve the previously saved diagram and perform a diagram.load, the diagram appears momentarily and then the screen seems to refresh and the canvas is blank.

Here's the relevant Javascript code:

function LoadDiagram() {
            var listbox = $find("<%= lstDiagrams.ClientID %>");
            var key = listbox.get_selectedItem().get_value();
            WebService.GetDiagram(key, OnSuccess_Get, OnFail);

function OnSuccess_Get(response) {
            var diagram = $("#DiagramContent").ejDiagram("instance");
            var jsonData = JSON.parse(response);


As I said, I DO see the diagram, but only for a second before the canvas goes blank.

Any ideas?

Thanks in advance.


Shyam G [Syncfusion]
Replied On October 29, 2014 03:47 AM UTC

Hi Jim

Thanks for using Syncfusion products.

We are glad to inform you that we have created a simple sample of save and load using database and attached below.

Please let me know if any concerns.


Shyam G

Attachment: jimdatabasesampleasp.net_f2881fab.zip

Jim Jacobs
Replied On October 30, 2014 03:59 PM UTC


I have the database save/load working, but thanks for the sample.
I have since discovered that the diagram will disappear and reappear as the browser window is resized.
This is only occurring in FireFox (33.0.2) - IE, Chrome and Safari are working.
Are you aware of any issues with FireFox?


Shyam G [Syncfusion]
Replied On October 31, 2014 05:19 AM UTC

Hi Jim

Thanks for the update.

We have checked our sample in Firefox browser(33.0.2). we are unable to reproduce the reported issue at our end. Could you please provide us more details such as sample and video or modify the below sample to reproduce the issue in our end?. This will help us to verify and to provide better solution. Please refer the sample and video below.

Sample: http://www.syncfusion.com/downloads/support/directtrac/general/jimdatabasesampleasp.net-1163560396.zip

Video: http://www.syncfusion.com/downloads/support/directtrac/general/windowresize678959137.zip

Please let me know if any concerns.


Shyam G


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon