Hi all,
We have an issue with the TreeView, this issue is that when we select the checkbox of the parent, the child checkbox is not being selected. The weird part is that this behaviour only happens the first time when the tree is not expanded yet. If the tree is expanded then the behaviour works as expected.
I debugged on the events and I see that it only comes once in the event, which normally should happen twice. Is this a bug? Or how can I solve this issue?
Here is our TreeView:
<telerik:RadTreeView x:Name="treeModules" SelectionMode="Extended" IsLineEnabled="True"
ItemsOptionListType="CheckList" IsOptionElementsEnabled="True"
IsRootLinesEnabled="True" VerticalAlignment="Top" Margin="10"
IsTriStateMode="True" Selected="treeModules_Selected"
MouseRightButtonUp="treeModules_MouseRightButtonUp" ItemContainerStyle="{StaticResource ItemContainerStyle}"
ItemsSource="{Binding ModuleListHelper, Mode=OneWay}" Checked="treeModules_Checked" Unchecked="treeModules_Checked">
<telerik:RadTreeView.ContextMenu>
<ContextMenu>
<MenuItem x:Name="ctMenuDelete" Click="ctMenuDelete_Click" Header="Delete">
<MenuItem.Icon>
<Image Source="/images/trash.gif"/>
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
</telerik:RadTreeView.ContextMenu>
</telerik:RadTreeView>
<telerik:RadTreeView.ContextMenu>
<ContextMenu>
<MenuItem x:Name="ctMenuDelete" Click="ctMenuDelete_Click" Header="Delete">
<MenuItem.Icon>
<Image Source="/images/trash.gif"/>
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
</telerik:RadTreeView.ContextMenu>
</telerik:RadTreeView>
Thank you!
We have an issue with the TreeView, this issue is that when we select the checkbox of the parent, the child checkbox is not being selected. The weird part is that this behaviour only happens the first time when the tree is not expanded yet. If the tree is expanded then the behaviour works as expected.
I debugged on the events and I see that it only comes once in the event, which normally should happen twice. Is this a bug? Or how can I solve this issue?
Here is our TreeView:
<telerik:RadTreeView x:Name="treeModules" SelectionMode="Extended" IsLineEnabled="True"
ItemsOptionListType="CheckList" IsOptionElementsEnabled="True"
IsRootLinesEnabled="True" VerticalAlignment="Top" Margin="10"
IsTriStateMode="True" Selected="treeModules_Selected"
MouseRightButtonUp="treeModules_MouseRightButtonUp" ItemContainerStyle="{StaticResource ItemContainerStyle}"
ItemsSource="{Binding ModuleListHelper, Mode=OneWay}" Checked="treeModules_Checked" Unchecked="treeModules_Checked">
<telerik:RadTreeView.ContextMenu>
<ContextMenu>
<MenuItem x:Name="ctMenuDelete" Click="ctMenuDelete_Click" Header="Delete">
<MenuItem.Icon>
<Image Source="/images/trash.gif"/>
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
</telerik:RadTreeView.ContextMenu>
</telerik:RadTreeView>
<telerik:RadTreeView.ContextMenu>
<ContextMenu>
<MenuItem x:Name="ctMenuDelete" Click="ctMenuDelete_Click" Header="Delete">
<MenuItem.Icon>
<Image Source="/images/trash.gif"/>
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
</telerik:RadTreeView.ContextMenu>
</telerik:RadTreeView>
Thank you!