If I set IsLoadOnDemandEnabled="True" on the RadTreeView, it sets the Expander node for all items in the tree including the leaf node. This is as it should be according to the documentation. Howerver, I have a tree that is constructed using Hierarchical templates. I want to set the IsLoadOnDemandEnabled="True" for only some of the nodes in the hierarchy. I can get this to work by setting the IsLoadOnDemandEnabled=True for the entire tree. However this puts the expander on all nodes including the last one (the leaf nodes). I don't want the expander in the leaf nodes. How to disable this?
You can use the sample in the documentation -- and set IsLoadOnDemandEnabled="True" at the tree level, then try to set IsLoadOnDemandEnabled="True" at an intermediate node, or turn it off at the leaf nodes. I have tried to obtain the individual RadTreeViewItem and set the IsLoadOnDemandEnabled to False for the leaf node, but I still see the expander icon.
http://demos.telerik.com/silverlight/#TreeView/HierarchicalTemplate
You can use the sample in the documentation -- and set IsLoadOnDemandEnabled="True" at the tree level, then try to set IsLoadOnDemandEnabled="True" at an intermediate node, or turn it off at the leaf nodes. I have tried to obtain the individual RadTreeViewItem and set the IsLoadOnDemandEnabled to False for the leaf node, but I still see the expander icon.
http://demos.telerik.com/silverlight/#TreeView/HierarchicalTemplate
<telerik:HeaderedContentControl
HorizontalAlignment="Center"
VerticalAlignment="Center"
Header="Leagues"
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch"
Height="410">
<telerikNavigation:RadTreeView
ExpanderStyle="{StaticResource ExpanderStyle1}"
ItemTemplateSelector="{StaticResource myDataTemplateSelector}"
ItemsSource="{Binding Source={StaticResource MyList}}"
Margin="5"
IsLoadOnDemandEnabled="True" /> <!-- This is the property that needs to be set selectively -->
</telerik:HeaderedContentControl>