03-17-2009 04:49 PM
Hi,
I am looking to persist the tree selection in my application (save to a file on close, load from the file on open), but I cannot figure out how to programmatically select an item in a tree on load. I would like to select the item as well as have it highlighted as is the usual behaviour if selecting via mouse.
I have tried writing to the "ActiveItemTag" property, but this does not work. Any ideas?
Solved! Go to Solution.
03-17-2009 05:13 PM
AK01,
Try the "Value" property. The value of a tree control is the tag that is currently selected, so setting the Value to the appropriate tree tag will highlight that item.
Chris M
03-17-2009 11:53 PM
Hai,
"Value" Property hightlights the tree item given as input. It is a string data type and hence wire the element tag to highlight that element. If the "selection mode" is set to "1 or more items" then wire a 1d string array to high light multiple items.
Hope it helps.
03-18-2009 12:59 PM