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.
Unfortunately, activation email could not send to your email. Please try again.

Loading diagram from web service - displays briefly, then disappears

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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



Shyam G [Syncfusion]
Replied On October 28, 2014 11:47 PM

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

Jim Jacobs
Replied On October 30, 2014 11:59 AM

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

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

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


CONFIRMATION

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.

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.

;