Hi,
I would like to show different images depending on if a node is activated or not, like in the windows explorer. There you can see a folder that is open (active nodee) or closed (inactive node). What would the best practice?
Regards, Stefan.
Ah, I see it now. I need ActiveNodeAppearance.
Thanks all, Stefan.
Thank you Mike. I want these images to change when a node is activated, not when it is expanded or collapsed. Exactly like in the windows explorer: if you click a folder in the tree it is not expanded but activated and the icon changes from cfold.ico to ofold.ico.
Kind regards, Stefan.
Hi Stefan,
Did you want to change the expansion indicators or just supply images to the nodes?
For the former, you would need a DrawFilter. For the latter, it's much easier.
this.ultraTree1.Override.NodeAppearance.Image = collapseNodeImage;this.ultraTree1.Override.ExpandedNodeAppearance.Image = expandedNodeImage;
I'm sure there are samples of this included with the NetAdvantage SDK.
Hello Stefan, The only one possible way to achieve that is to using Draw Filter that will change the existing expansion Indicator on the tree nodes. Here you can find knowledge base article demonstrating this using images for both states – collapsed and expanded: http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=6699
I hope this helps.Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.