c# - Bolding TreeNode Text in Web Control -
I have a web application with a TreeView / TreeNode, I want it because when I select a topic It makes the text bold, I can set an on-select node-changed event on the ASPX page and change the text to bold.
But I need to do node set with javascript in Navigate mode instead of selection mode. I am trying to do this via callback to the Javascript server, to the callback to the value node of the tree node. I try again and do this:
Tree View Tree View = GetCurrentTreeView (); // Tree node node = Treeview to the current displaying tree view. Fund node (argument); // This gives the correct node node. Text = "& lt; b & gt;" + Node. Text + "& lt; / b & gt;"; // It appears as a change in debugger // it is not changed
But bolding the text just seems to be neglected. It does not appear on the page, and if I click again then the bolding goes in the debugger.
I know that bold tags work when I put it inside the onsized node-changed event handler.
What's going on? Is there any way to do this?
There is no option for using TreeOnode mode. I need to be able to bold the text to the C # server side code (i.e. I have to change when a user clicks on the completely unrelated part of the site).
I put it inside an update panel and changing the preview to use selection mode ( So postback happened).
There is no way to just navigate and get the desired effect using Javascript.
Comments
Post a Comment