Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Copy Paste shape on diagram ASP.NET Java Applet (Read 3864 times)
chieh
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 64
Joined: Aug 18th, 2010
Copy Paste shape on diagram ASP.NET Java Applet
Dec 24th, 2012 at 9:34am
Print Post  
Hello Sir/Madam,

When users operate shape on a diagram, they quite like to have copy/ paste the shape existed on the diagram and replicate it on diagram without doing drag and drop from shape’s panel.
I would like to ask is there any copy/paste features in the latest version of netdiagram by using Java Applet to generate visual diagram?
If netdiagram supports this feature, I would like to ask is there any tutorial or sample code to demonstrate it.

My current requirement is
0.      ASP.NET 4.0, Windows Server 2003
1.      Use customized shape (new .shl) instead of standard shape panel.
2.      select the shape on the diagram then click copy /paste, or use ctrl+c, ctrl+v via keyboard to create a new duplicated instance in the same time and trigger the post back, if system can do so, I can save related data in database(e.g. according to unique id of shape user selected, shape’s attributes defined on a different table will be duplicated as well)



Many thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Copy Paste shape on diagram ASP.NET Java Applet
Reply #1 - Dec 26th, 2012 at 6:53am
Print Post  
Hi,

Use the applet's copyToClipboard and pasteFromClipboard methods:

Code
Select All
function testClipboard()
{
	var applet = <%= diagramView.AppletElement %>;
	applet.copyToClipboard();
	applet.pasteFromClipboard(10, 10);
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
saad
Full Member
***
Offline


I Love MindFusion!

Posts: 117
Joined: Oct 8th, 2012
Re: Copy Paste shape on diagram ASP.NET Java Applet
Reply #2 - Dec 30th, 2012 at 4:46pm
Print Post  
is this possible in imagemap mode?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Copy Paste shape on diagram ASP.NET Java Applet
Reply #3 - Dec 31st, 2012 at 9:40am
Print Post  
If you set DiagramView.EnableClipboard and add an InteractivityExtender, you will be able to copy and paste via the clipboard using Ctrl+C and Ctrl+V shortcuts.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint