Unable to Edit Diagram Node Content

Hi,

I am creating a Node though code and assigning a Textbox to Node Content property. And adding the node to diagram model then Node is displaying on the UI.

My issue is I am unable to edit the Textbox Text property on the UI. Please help me.

My requirement is I want to show a textbox in node and create that node dynamically and add to diagram model. I want to enter some value in textbox.

I am sending my code how I am approaching this functionality.

Node nodeObj = new Node();

nodeObj.IsEnabled = true;

nodeObj.IsHitTestVisible = true;

nodeObj.ContentHitTestVisible = true;

nodeObj.Content = new TextBox() { Width = 100.0, Text = "Hello Test" };

this.diagrammodel.Nodes.Add(nodeObj);

 

 

Regards,

Ramana


7 Replies

SC Sudhakar C Syncfusion Team July 16, 2012 12:00 PM UTC

Hi Ramana,
We have analyzed your query “Unable to Edit Diagram Node Content”, we have created a simple sample based on your requirement. In the sample, to get the reference of node’s Label and collapse the visibility of the Label to focus the TextBox. Please refer the sample for more information, which can be downloaded from the following link.

Please let us know if you have any concerns.
Regards,
Sudhakar.C



NodeContentTextBox_2113cd53.zip


SR Srikanth January 26, 2017 11:41 AM UTC

Hi,

 I have a similar issue. Looks like above sample is not accessible.

Can you share it please ?

Thanks,
Srikanth.


SS Suresh Shanmugam Syncfusion Team January 31, 2017 10:48 AM UTC


Hi Srikanth, 
 
Reported issue : Unable to edit Diagram Node content. 
 
We have prepared the sample based on your requirement and please find the sample in the below location. 
 

Regards, 
Suresh Shanmugam
 



SR Srikanth February 3, 2017 05:23 PM UTC

Thanks Ramana.


KR Keerthivasan Ramamoorthy Syncfusion Team February 6, 2017 06:24 AM UTC

Hi Srikanth, 
You are welcome. Please let us know if you need any other assistance 
   
Regards,   
Keerthivasan R.   



MI michal February 18, 2018 06:50 PM UTC

Metro Studio


TM Tamilarasi Marudhan Syncfusion Team February 19, 2018 05:12 AM UTC

Hi Michal, 
Thanks for contacting regarding Metro studio. Could you please update your requirement regarding Metrostudio? It would be helpful to assist you. 
  
  
Regards, 
Tamilarasi Marudhan 


Loader.
Up arrow icon