We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to show popup when Node is doubleclicked?

I am trying to use the tools package's Windows and PopupControlContainer with DiagramWebControl. I want to display the popup when a node is doubleclicked. The popup needs to display the node's Text and Type. How can I do that?

4 Replies

PM Pandi Murugan A Syncfusion Team August 29, 2012 12:50 PM UTC

Hi Luong,

 

Thanks for using Syncfusion products.

 

You can use DiagramWebControl’s OnClientNodeDoubleClick event to popup a container in client side.

 

Please refer the below UG document for more details.

 

http://help.syncfusion.com/UG/User%20Interface/ASP.NET/Diagram/documents/515howtoshowapopupwindowtodisplaythenodesinformationwhenanodeisclicked1.htm

 

ClientSide Node Information Sample: http://asp.syncfusion.com/demos/ui/diagram/Getting%20Started/Node%20Editing/CS/NodeEditing.aspx

 

For PoupContainer, please refer the below sample.

 

http://asp.syncfusion.com/demos/ui/tools/PopupContainer/Core%20Features/cs/PopupCoreFeature.aspx

 

Please let me know if any concerns.

 

Regards,

Pandi Murugan A



DC DUPLICATELuong Chau August 29, 2012 08:23 PM UTC

I followed your advise and the Window Attributes sample. I can get it to pop a window from Diagram's OnClientNodeDoubleClick(), but the window's Refresh() method does not work. The textbox in the Window is not updated.

I can get the textbox update if I click on a button. Just can't get it to populate if click on a Node.


WebApplicationDiagram_b628e296.zip


PM Pandi Murugan A Syncfusion Team September 4, 2012 01:12 PM UTC

Hi Luong,

 

Thanks for the update and we regret for the delay in getting back to you.

 

The reported issue belongs to our Tools ASP.NET Window control.  We have forwarded this to ASP.NET Tools team and they will assist soon.

 

Please let me know if any concerns.

 

Regards,

Pandi Murugan A



ME Meena Syncfusion Team September 26, 2012 10:55 AM UTC

Hi Luong,

 

Sorry for the delay in getting back to you.

 

From the attached sample, we have found that “return false” has been missed in the OpenWindowCtrl() client side function. To recover the reported issue “textbox not getting updated on node double click”, we suggest you to return false from that function. Please refer the below code snippet.

 

<code>

[Script]

  function OpenWindowCtrl(node) {

  

          $find('<%=this.Window1.ClientID%>').SetStatusText("Loading..");

          $find('<%=this.Window1.ClientID%>').Refresh();

          $find('<%=this.Window1.ClientID%>').Open();

          return false;

       }

 

</code>

 

Kindly try the above suggestion and let us know if it helps.

 

Regards,

Meena


Loader.
Live Chat Icon For mobile
Up arrow icon