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. Image for the cookie policy date

Loading diagram from web service - displays briefly, then disappears

Hi,

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);
            diagram.load(jsonData);

        }

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

Any ideas?

Thanks in advance.

Jim



3 Replies

SG Shyam G Syncfusion Team 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.

Regards,

Shyam G


Attachment: jimdatabasesampleasp.net_f2881fab.zip


JJ Jim Jacobs October 30, 2014 03:59 PM UTC

Hi,

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?

Jim


SG Shyam G Syncfusion Team 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.

Regards,

Shyam G


Loader.
Up arrow icon