Hello Christian,
"Both need to be able to expand, but on one I don't want the user to be able to select that treeviewitem."
You can add a bool property to your ViewModel item (ex: IsSelectable) and subscribe for the PreviewSelected event of RadTreeView and handle the event if IsSelectable is false.
Also, is there a way to disable the expander on a treeviewitem as well if I know beforehand they have no subitems?
There are 2 approaches for this to work.
1. You can set IsEnabled to false to the whole RadTreeViewItem thus disabling the expander element as well.
2. Using find the expander element in the visual tree and disable it directly:
I've attached my test project for further reference. Have a look at it and let me know if you have further questions or comments regarding this topic.
Best wishes,
Kiril Stanoev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items