This is a migrated thread and some comments may be shown as answers.

Export to JSON

6 Answers 375 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Mario
Top achievements
Rank 1
Mario asked on 13 Jul 2015, 04:58 PM
Can i export my diagram and all the data inside him to a formatted json model ?

6 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 15 Jul 2015, 12:04 PM
Hi,

I am not sure if I understand the question. Are you trying to implement something like the Save option in the diagram sample app?

Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
William
Top achievements
Rank 1
answered on 07 Jul 2016, 08:08 PM

Hi,

Can we save the json file in the address where we need? 

0
Daniel
Telerik team
answered on 11 Jul 2016, 07:57 AM
Hello,

If you are referring to the download location then no, this is not allowed by the browsers. 

Regards,
Daniel
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
victor
Top achievements
Rank 1
answered on 06 Nov 2019, 05:04 PM

Hi

 

Its possible to implement the save option in this example diagram sample app in one kendo ui vue diagram?

 

Regards

Victor

0
Veselin Tsvetanov
Telerik team
answered on 08 Nov 2019, 01:01 PM

Hi Victor,

Under the hood, the Vue Diagram uses the jQuery Diagram widget. Therefore, you should use the save() method of the widget:

var diagram = this.$refs.diagram.kendoWidget();
var json = diagram.save();
console.log(json);

Here is a StackBlitz sample implementing the above: https://stackblitz.com/edit/d51rkz?file=index.js

Regards,
Veselin Tsvetanov
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
victor
Top achievements
Rank 1
answered on 08 Nov 2019, 03:52 PM

Hi Veselin

Thanks a lot, i implment it like you said

 

Regards

Victor Fuentes

Tags
Diagram
Asked by
Mario
Top achievements
Rank 1
Answers by
Daniel
Telerik team
William
Top achievements
Rank 1
victor
Top achievements
Rank 1
Veselin Tsvetanov
Telerik team
Share this question
or