Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Not able edit text on node in image map mode (Read 16800 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Not able edit text on node in image map mode
Reply #15 - May 16th, 2014 at 9:22am
Print Post  
Quote:
Its works but the new problem is that when i not double click on node still i 'm not able select the node from diagramview


You will have to handle NodeClickedScript the same way as double-click. Setting either of them prevents standard post-backs and selection handling.

Quote:
is there anyway so i can handle node double click event on server side in image map mode


There is no server double click event at this time. You could add some post data to identify double-click from client event when calling __doPostBack and then check it on server.
  
Back to top
 
IP Logged
 
Pratik
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 27
Joined: May 15th, 2014
Re: Not able edit text on node in image map mode
Reply #16 - May 16th, 2014 at 12:49pm
Print Post  
1)i just add only client side function and server side function are not working in image map mode.

2)now i add hyperlink to node is there anyway i want to open that hyperlink by double clicking on node from server side
  
Back to top
 
IP Logged
 
Pratik
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 27
Joined: May 15th, 2014
Re: Not able edit text on node in image map mode
Reply #17 - May 19th, 2014 at 5:03am
Print Post  
i want to handle mouse right click on node server side is there any way to handle it?if any please give me some code example.. Smiley
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Not able edit text on node in image map mode
Reply #18 - May 19th, 2014 at 8:06am
Print Post  
This will raise ImageMap click event for right button but will still report the MouseButton argument as Left:

Code
Select All
function onContextMenu(e)
{
    e.preventDefault();
    document.getElementById('_mfusion__dview_ClickedItem').value = e.target.alt;
    $find('_dview').onClick(e);
    window.__doPostBack("_dview");
} 



We'll add built-in support for right-clicks for the V5.1 release.

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


I Love MindFusion!

Posts: 27
Joined: May 15th, 2014
Re: Not able edit text on node in image map mode
Reply #19 - May 19th, 2014 at 11:21am
Print Post  
when i write below code and run application i got ')' missing javascript error

Protected Sub dgvSecMap_CreatingAreaElement(sender As Object, e As CreatingAreaElementEventArgs) Handles dgvSecMap.CreatingAreaElement
        e.Attributes("onmousedown") = "return onNodeMouseDown(event," & e.Item.Id.ToString() & ")"
    End Sub

Smiley
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Not able edit text on node in image map mode
Reply #20 - May 19th, 2014 at 1:46pm
Print Post  
This new v5.1 build adds support for right-clicks in ImageMap mode:
https://mindfusion.eu/_beta/netdiag51.zip

It also lets you easily mix NodeClickedScript client-side with server click events: set the args.ServerPost property to true from the script handler and it will automatically post-back once the handler returns and raise the server event:

Code
Select All
function onNodeClicked(sender, args) {
    ...
    args.setServerPost(true);
} 



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


I Love MindFusion!

Posts: 27
Joined: May 15th, 2014
Re: Not able edit text on node in image map mode
Reply #21 - May 21st, 2014 at 12:11pm
Print Post  
i have old version of mindfusion diagram in that version i'm not able edit node or link text by pressing Ctrl + mouse left click what to do?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Not able edit text on node in image map mode
Reply #22 - May 21st, 2014 at 12:24pm
Print Post  
If that old version has NodeClickedScript event, you could intercept it and show your own editor in a popup window.
  
Back to top
 
IP Logged
 
Pratik
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 27
Joined: May 15th, 2014
Re: Not able edit text on node in image map mode
Reply #23 - May 21st, 2014 at 12:42pm
Print Post  
Can you tell me features of  NetDiagram 4.0
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Not able edit text on node in image map mode
Reply #24 - May 21st, 2014 at 12:59pm
Print Post  
You can find the release history here:
http://www.mindfusion.eu/onlinehelp/netdiagram/index.htm?CC_Version_History_4.ht...

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