Programatically change text in a textnode

Hi,
I'm using VB .net 2008

I have a custom Group Class that I use as a custom node. It has a textnode and a rectangle.

I want to know the method for programmatically changing the text that is displayed in the textnode.

Thanks in advance


6 Replies

AD Administrator Syncfusion Team November 19, 2008 09:00 AM UTC

Actually, I do not even know how to obtain the text from a textnode programmatically.

Can you please explain?

thanks



AD Administrator Syncfusion Team November 19, 2008 12:44 PM UTC

Hi Ameel,

The textnode's text can be changed programmatically using the TextNode's "text" property.

I am attaching my sample file herewith for your convenience.

Update me of your experiences.

Happy Coding!

- Ajeet



Test_VB_c5fe8900.zip


AD Administrator Syncfusion Team November 19, 2008 01:06 PM UTC

Ok.
Thanks for that, but its not helping.

But actually it was accessing the textnode within a group that i had trouble with.

But i figured out i could use:
Directcast(group.getchild(i), textnode)

thanks anyway



AD Administrator Syncfusion Team November 20, 2008 04:55 AM UTC

Hi Ameel,

The code file that demonstrates the dynamic change in the text of the text node is here at:

*****
"http://www.syncfusion.com/support/user/uploads/Test_VB_dc5c9442.zip
*****
Test'>http://www.syncfusion.com/support/user/uploads/Test_VB_dc5c9442.zip">Test VB


Happy Coding!

-Ajeet



AD Administrator Syncfusion Team November 20, 2008 12:39 PM UTC

Thanks Ajeet ^__^



JB Jim Bonomo July 5, 2011 03:25 PM UTC

I am interested in the sample code discussed in this post but it is no longer available. Can you give me an updated link to it?

Thanks!


Loader.
Up arrow icon