So, I have this problem. Whenever I put "javascript: DoSomething();" in the NavigateUrl property the Selected style never gets applied to the node. So I attempt to dig around the .htc file for the treeview and determine what might need to be changed.
So in the doNodeClick() method in the .htc file I changed the following code:
if (target == null || target.toLowerCase() == "_self")
return false;
to the following:
if (target == null || target.toLowerCase() == "_self")
{
selectNode(el);
return false;
}
That allows the select style to be applied to the text, but the images start disappearing. I know, I know sounds weird, but when I click on a node, seemingly randomly, the icons associated with the node disappear. I can right click on them and see the correct properties for the image. I can click "Show Picture" to make the image appear, but I can click around and the image will eventually disappear again.
So, if anyone has a recommendation to fix this then please let me know.
Thanks!