- Welcome, Guest. Please Login or Register
  We have released initial version of MindFusion.Scheduling library for HTML5 & JavaScript.  
Page Index Toggle Pages: 1 Send Topic Print  
Copy & Paste Multiple object
Read 1230 times

Marco Pessina   Offline
YaBB Newbies
Posts: 5
Gender: male
I Love MindFusion!

Copy & Paste Multiple object
Oct 31st, 2018 at 5:12pm
I'm using Diagram for asp.net mvc, and I've realized a copy paste pattern. Everything work correctly when I copy and paste only one item everything works fine.
If I select more items (nodes and links), the item are copied
in the diagram but I got an error in the console and my javascript execution breaks. The error I got is this:

VM4883:1 Uncaught TypeError: Cannot read property 'onLoad' of undefined
    at b.Diagram.pasteFromClipboard (eval at <anonymous> (eval at globalEval (jquery-2.1.3.js:328)), <anonymous>:1:132924)

Any suggestion?
Can you help me?

Thanks in advance.
Marco Pessina
IP Logged    

Slavcho   Offline
God Member
Posts: 1677
Gender: male

Re: Copy & Paste Multiple object
Reply #1 - Nov 1st, 2018 at 11:30am

We have reproduced with unconnectedLinks argument of paste method set to false. Set it to true for time being, or unselect links before copy if their nodes are not selected.

IP Logged    
Page Index Toggle Pages: 1 Send Topic Print