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

saveDiagram api throws error

I am facing some issue while trying to save a diagram . Please take a look at this code :

function loadDiagramInMemory(currentForm) {

    var diagram = currentForm.data('diagram');

    var saveData = diagram.saveDiagram();

    localStorage.setItem('file', saveData);


which results into this exception :

I am not sure , what I am doing wrong here. just for reference this call is happening after getting success data from controller 


        action: "CreateTask",

        actionArgs: postdata,

        resultTarget: function (result) {

            var canvasData = JSON.parse(result);





1 Reply

BM Balasubramanian Manikandan Syncfusion Team February 6, 2023 10:05 AM UTC

We analyzed your query and rendered a sample for your scenario, and it is working fine at our end. We attached a sample for your reference, still if you face any issues kindly share us more details such us modify the below sample or share us any simple sample illustrating issue. This would help us to analyze further and provide solution.



Live Chat Icon For mobile
Up arrow icon