This is a migrated thread and some comments may be shown as answers.

CheckBoxMode with ItemTemplate

1 Answer 25 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Hermann asked on 05 Dec 2019, 11:20 AM

I have the following:

        TargetType="{x:Type viewHelpers:GroupSettingsModel}">
            <Grid Margin="{Binding Path=Level, Converter={StaticResource levelToMarginConverter}}"
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto"/>
                IsLoading="{Binding Path=IsLoading}"
                IsLoadOnDemandEnabled="{Binding Path=IsLoadOnDemandEnabled}"
                IsExpanded="{Binding Path=IsExpanded}"
                IsLeaf="{Binding Path=IsLeaf}" />
            <!--HOW TO ADD CHECKBOX HERE?-->
                Text="{Binding Item.Title}" />


Can you tell me how to add back the checkbox to my custom Template?

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 05 Dec 2019, 11:58 AM

Hi Hermann,

Thank you for the provided code.

When the ItemTemplate is set it overrides the default ItemTemplate and the checkbox is not visible. In order to solve this you need to use the TreeView control template.

I have attached a sample that shows how this could be implemented. I have used two TreeView Descriptors. Please find my test project attached and review the Page3.xaml file how the TreeViewDescriptor.ItemTemplate is defined.

I hope I was helpful.

Progress Telerik

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 Feedback Portal and vote to affect the priority of the items
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question