Howdy,
I have many context menus that I can load when a customer 'right-clicks' on the text portion of a tree node. Thanks for the superb examples.
However, now that I have some time to apply more finishing touches I would like to trap when the customer 'right-clicks' the icon (the folder, for example) and provide the same menu. It appears that the NodeClick client side event is not triggered when the customer right-clicks on the icon. However, the NodeClick client side event is triggered on left-clicking the icon.
Hello,
You are right, but for this moment I can give only that workaround of this problem. Nodes of UltraWebTree support HTML and you can inset image before text.
For example node will look that:
<ignav:Node Text="<img alt=''align='absmiddle' src='images.jpg'/> SampleNode">
This way both right and left mouse clicks on image will work. I hope this will help you go on with your project until we include the actual fix in a subsequent hotfix.
Best Regards, Ivan Baev The Infragistics ASP.NET Team
This is nice to know. Thanks for the tip.
I am using this feature to run some javascript to display a loading animation prior to loading a page in an iframe.
Instead of using, TargetUrl and Target Frame, I'm setting the Node Text.
Here's how I set the node text in the code behind
childNode.Text="<span onclick=\"top.frames['ContentFrame'].showloadinganimation();top.frames['ContentFrame'].frames['DetailsFrame'].location='UserDetails.aspx'\">User Details</span>";
Nice !
-Craig
Wow Ivan,
I'll give your solution a try on a test basis. It doesn't seem that difficult, but it does seem to kinda hide a feature that a future programmer may have problems with if I find myself employed elsewere.
I am sorry that I did not thank you earlier for your quick post and solution. I am not certain I got the email notification. Thank you.