Hey guys,
I have a problem I'm trying to solve. I'm trying to programmatically select an item in the tree view. I'm doing something like this:
however it doesn't seem to be a hard select. When I click on one of the tree view items it's highlighted yellow (default theme), but when I select it programmatically it's highlighted silver. If I try to get the currently selected tree view item after doing the above it will come back as null (I.E. trying RadTreeViewItem item = (RadTreeViewItem)this.treeRelease.SelectedItem;). It's also not throwing my SelectionChanged event. Am I doing this wrong?
Thanks!
I have a problem I'm trying to solve. I'm trying to programmatically select an item in the tree view. I'm doing something like this:
public void selectCurrentNodeByRelease(Release sentObject)
{
foreach (RadTreeViewItem i in this.treeRelease.Items)
{
if (i.Tag == sentObject)
{
i.ExpandAll();
i.IsSelected = true;
}
}
}
however it doesn't seem to be a hard select. When I click on one of the tree view items it's highlighted yellow (default theme), but when I select it programmatically it's highlighted silver. If I try to get the currently selected tree view item after doing the above it will come back as null (I.E. trying RadTreeViewItem item = (RadTreeViewItem)this.treeRelease.SelectedItem;). It's also not throwing my SelectionChanged event. Am I doing this wrong?
Thanks!