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

TextChange event not fired


OK, I've been burnt before so I did comment out the following line in DiagramBuilder.js :

    // diagram.model.textChange = textChanged; 

I have tried the following in my code behind (why are there two?):

        //DiagramContent.ClientTextChange = "nodeTextChange";
        DiagramContent.Model.TextChange = "nodeTextChange";

And then my event handler in the main aspx page:

            function nodeTextChange(args) {
                alert('In nodeTextChange');

I double-click on a node, add some text and then click outside the node.
The alert is never reached.

What am I doing wrong?



3 Replies

SG Shyam G Syncfusion Team December 16, 2014 12:39 PM UTC

Hi Jim

Thanks for using Syncfusion products.

Please note that “DiagramContent.Model.TextChange” is a server side event and “DiagramContent.ClientTextChange” is a client side event. Currently we don’t have support for server side event(DiagramContent.Model.TextChange). so we suggest you to use the client side event. Please see the code snippet below to trigger client side event.

Code snippet:

DiagramContent.ClientTextChange = "nodetextchanged"

function nodetextchanged(args) {

     alert('In nodeTextChange');


Please let me know if any concerns.


Shyam G

JJ Jim Jacobs December 16, 2014 03:00 PM UTC

Hi Shyam,

I'm using the client side event as you suggested and it's working fine now.


SG Shyam G Syncfusion Team December 17, 2014 06:32 AM UTC

Hi Jim

Thanks for the update.

Please let us know if you require further assistance on this.


Shyam G

Live Chat Icon For mobile
Up arrow icon