Child checkbox not checked 1st time when parent is checked

3 posts, 0 answers
  1. Maarten
    Maarten avatar
    2 posts
    Member since:
    May 2011

    Posted 03 May 2011 Link to this post

    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. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 06 May 2011 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Maarten
    Maarten avatar
    2 posts
    Member since:
    May 2011

    Posted 13 May 2011 Link to this post

    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
Back to Top