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

Checkbox Status Incorrect in Floating Panel(?)

3 Answers 64 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Tracy
Top achievements
Rank 1
Tracy asked on 08 Oct 2010, 12:52 AM

Hi,
We have a RadTreeView nested in a RadPanelBar which the user can undock and have floating. While docked the binding for the all data works fine including the state of the checkboxes. However, when the undocked and floating the checkboxes no longer reflect the correct state. The names for the hierarchical data items are displaying correctly so some of the binding is still working but not the state of the checkboxes.

The following is the xaml we are using:

<telerikNavigation:RadPanelBarItem Collapsed="RadPanelBarItem_ExpandedCollapsed" Expanded="RadPanelBarItem_ExpandedCollapsed" >
    <telerikNavigation:RadPanelBarItem.Header>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="18" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <CheckBox Grid.Column="0" IsThreeState="True" IsChecked="{Binding IsDomainsChecked, Mode=TwoWay, NotifyOnTargetUpdated=True}" Click="FilterCheckBox_Click" TargetUpdated="CheckBox_TargetUpdated"/>
            <TextBlock Grid.Column="1" Text="Domains"/>
        </Grid>
    </telerikNavigation:RadPanelBarItem.Header>
    <telerikNavigation:RadTreeView 
        Name="DomainTreeView"
        IsOptionElementsEnabled="True"
        ItemsOptionListType="CheckList" 
        IsTriStateMode="True" Checked="TreeView_CheckedUnchecked" Unchecked="TreeView_CheckedUnchecked"
        ItemsSource="{Binding Path=DomainEmailTypes}">
            
        <telerikNavigation:RadTreeView.ItemTemplate>
            <HierarchicalDataTemplate DataType="{x:Type ViewModels:EmailTypeFilterViewModel}" ItemsSource="{Binding Path=EmailTypes}">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" Text="{Binding Path=Name}"/>
                    <TextBlock Grid.Column="1" Margin="5,0,5,0" Text="{Binding Path=DisplayCount}" />
                </Grid>
                <HierarchicalDataTemplate.ItemTemplate>
                    <DataTemplate>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>
                            <TextBlock Grid.Column="0" Text="{Binding Path=Name}"/>
                            <TextBlock Grid.Column="1" Margin="5,0,5,0" Text="{Binding Path=DisplayCount}" />
                        </Grid>
                   </DataTemplate>
                </HierarchicalDataTemplate.ItemTemplate>
            </HierarchicalDataTemplate>
        </telerikNavigation:RadTreeView.ItemTemplate>
    </telerikNavigation:RadTreeView>
</telerikNavigation:RadPanelBarItem>


Any help or insight would be greatly appreciated.

Thank you.

3 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 08 Oct 2010, 05:51 PM
Hello Tracy,

 There seems to be a problem with the IsChecked property, so you'll have to use the CheckState property with a converter. Please examine the attached project and if you have any further questions feel free to ask.

Kind regards,
Zarko
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
Tracy
Top achievements
Rank 1
answered on 11 Oct 2010, 04:20 PM
Thank you for the response.

We are using VS 2008 so I was unable to open sample that you sent.

Due to time constraints with the project, we have decided to not allow the panel to float. Then when the IsChecked property issue gets fixed, we can allow the panel to float. 

Any idea on when the IsChecked property issue is going to be fixed?

Thank you,

Tracy

0
Tina Stancheva
Telerik team
answered on 12 Oct 2010, 10:25 AM
Hi Tracy,

I cannot bind to a specific date when the issue will be fixed, but we will do our best to fix  it for the upcoming Q3 2010 official release of at latest for the Q3 2010 SP1 release.

I hope this time frame is acceptable for you.

Also, you can track the progress of the item in our PITS.

Sincerely yours,
Tina Stancheva
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
Tags
TreeView
Asked by
Tracy
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Tracy
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or