Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic "Light" version of NDiagram (Read 4161 times)
KBalquis
YaBB Newbies
*
Offline


Senior developer

Posts: 12
Joined: Nov 19th, 2007
"Light" version of NDiagram
Dec 17th, 2007 at 11:36am
Print Post  
Am using NDiagram to allow users to create their own flowchart and I save them into a database.
I have a user who is allowed to "view" the flowcharts. however, it takes long time to load the applet. Is there a way to enhance the performance of the applet loading? or is there a light version of the applet that is used for viewing without allowing the user to interact with the applet?
Regards
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "Light" version of NDiagram
Reply #1 - Dec 17th, 2007 at 12:21pm
Print Post  
You could set ClientSideMode to ImageMap for users that don't need interactivity. That mode does not require loading the applet at all. Otherwise, set Behavior to DoNothing to prevent the user from modifying the flowchart when in applet mode.

You can create a lighter version of the applet by opening the .jar file and removing the classes that won't be used in view-only mode (e.g. layout classes). Then you can set JarLocation to the full applet for users that can edit the flowchart, and set it to the lighter applet for users that will only view the flowchart.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
KBalquis
YaBB Newbies
*
Offline


Senior developer

Posts: 12
Joined: Nov 19th, 2007
Re: "Light" version of NDiagram
Reply #2 - Dec 21st, 2007 at 10:31am
Print Post  
Thank you Stoyo, it works great  Grin
is there a way to disable the PostBack upon clicking a box?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "Light" version of NDiagram
Reply #3 - Dec 21st, 2007 at 12:57pm
Print Post  
Yes, you could add an empty BoxClickedScript, or set the Hyperlink property of all boxes to "javascript:void(0)".

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
KBalquis
YaBB Newbies
*
Offline


Senior developer

Posts: 12
Joined: Nov 19th, 2007
Re: "Light" version of NDiagram
Reply #4 - Dec 21st, 2007 at 2:34pm
Print Post  
Thank you  Grin You are really being a great help to me.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "Light" version of NDiagram
Reply #5 - Dec 21st, 2007 at 2:34pm
Print Post  
8)
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint