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

Child checkbox not checked 1st time when parent is checked

2 Answers 58 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Maarten
Top achievements
Rank 1
Maarten asked on 03 May 2011, 08:53 AM
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!

2 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 06 May 2011, 08:54 AM
Hello Maarten,

I was not able to simulate the issue with the latest DLLs. I'm attaching a project which you may modify in order to simulate your case and introduce the issue.

Let me know if you need further assistance.

Best wishes,
Hristo
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
0
Maarten
Top achievements
Rank 1
answered on 13 May 2011, 01:22 PM
Hi Hristo,

I tried to reconstruct the issue in your project and I wasn't able to. So it had to be in our coding, so after working hours on it, I found that we had a bug in our converter class.

My appolagies. Thank you.

Maarten
Tags
TreeView
Asked by
Maarten
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Maarten
Top achievements
Rank 1
Share this question
or