Welcome Guest Search | Active Topics | Sign In | Register

TreeView Won't Display Ampersand Options
wooddreams
Posted: Thursday, September 25, 2008 10:27:36 AM
Rank: Newbie
Groups: Member

Joined: 3/22/2008
Posts: 5
In my database I have a list of companies that I am loading into a TreeView control.
One of the companies is AT&T.
When it is loaded into the database, it displays as AT

AT&T displays AT&T
AT& T displays AT& T

Unfortunately, I need to keep AT&T in my database (no & or blanks) and need it to display as AT&T

I have tested this with the latest download gotten from the website moments ago.
eo_support
Posted: Thursday, September 25, 2008 10:37:33 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,090
Hi,

This behavior is by design. The TreeView interprets what you feed to it as HTML, not plain text. This is necessary so that it's possible to have formatting information, such as color, font weight etc on the tree node text. So in your case, you will need to HTML encode the text either before feeding it to the TreeView (often in your SELECT statement), or after the node is populated by handling the TreeView's ItemCreated event and do the HTML encoding and modify the TreeNode's text there.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.