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

Unable to design RadTreeView in Blend

8 Answers 101 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Todor
Top achievements
Rank 1
Todor asked on 08 Jun 2010, 10:26 AM

Hi,

I'm having a problem with setting the RadTreeViewItem's CheckState property through the ItemContainerStyle of the RadTreeView. Specifically, I receive an error message every time I try to edit the xaml in design mode with Blend (versions 3 or 4 RC) and nothing gets rendered on the design surfice. The message is:

"The member 'CheckState' is not recognized or is not accessible."

 I managed to reproduce the problem with a stripped-down version of the xaml:

<Window x:Class="WpfApplication18.MainWindow" x:Name="Window" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"   
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"               
        xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
        mc:Ignorable="d"   
        Width="640" Height="480" 
        xmlns:sys="clr-namespace:System;assembly=mscorlib">  
 
    <Grid>   
        <telerikNavigation:RadTreeView IsOptionElementsEnabled="True">              
            <telerikNavigation:RadTreeView.Items> 
                <sys:String>Item 1</sys:String>               
                <sys:String>Item 2</sys:String>               
                <sys:String>Item 3</sys:String>      
            </telerikNavigation:RadTreeView.Items> 
            <telerikNavigation:RadTreeView.ItemContainerStyle> 
                <Style TargetType="{x:Type telerikNavigation:RadTreeViewItem}">  
                    <Setter Property="CheckState" Value="On" />   
                    
<Setter Property="OptionType" Value="CheckList" />                   
                </Style> 
            </telerikNavigation:RadTreeView.ItemContainerStyle> 
        </telerikNavigation:RadTreeView>         
    </Grid> 
</Window> 

It's only the CheckState property that's causing the problem (the OptionType property from the sample works fine).
Sources on the internet suggest tha an internal exception in the property 'setter' might be causing such behavior but that's just a clue.
Do you have any idea how I can get it working in Blend ??

8 Answers, 1 is accepted

Sort by
0
Todor
Top achievements
Rank 1
answered on 10 Jun 2010, 08:00 AM
Did anyone try that?
0
Valentin.Stoychev
Telerik team
answered on 10 Jun 2010, 05:55 PM
Hello Todor,

We managed to reproduce the issue. However we are not sure what is causing it. We logged the issue and will further investigate it.

Thank you for your report!

Regards,
Valentin.Stoychev
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
Todor
Top achievements
Rank 1
answered on 11 Jun 2010, 07:53 AM
Hi Valentin,

Thanks for considering my issue. I'll be waiting for further info and maybe a work-around, in case you manage to sort out what exactly is causing this misbehavior.

Have nice day!
0
Valentin.Stoychev
Telerik team
answered on 15 Jun 2010, 08:05 AM
Hello Todor,

It will be fixed with the official release coming within in a month.

Greetings,
Valentin.Stoychev
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
Valentin.Stoychev
Telerik team
answered on 15 Jun 2010, 02:47 PM
Hello Todor,

Can you try the attached solution and let us know if you experience the problem again. It is working on our end. If the problem still persist - please give us the Blend version that you are using.

Thanks in advance for your cooperation!

Sincerely yours,
Valentin.Stoychev
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
Todor
Top achievements
Rank 1
answered on 16 Jun 2010, 01:15 PM
Hi Valentin,

Yes, it's working fine!
Unfortunately it seems that it's part of the Q2 2010 release and I won't be able to take advantage of the bug-fix as our developer licence expires with the Q1 2010 release. Thanks anyway. At least, I hope this will be helpful for all other clients.
0
Kevin
Top achievements
Rank 1
answered on 12 Oct 2011, 01:10 PM
Is it possible that this issue has been re-introduced in later versions? I'm using Blend 4 and the WPF Q2 2011 SP1 Telerik installation and I see exactly the same error with RadTreeView when trying to use the "CheckState" property setter. 

I've tried the solution that was provided for reference, and that one works fine in Blend -- but it includes 2010 versions of the Telerik assemblies and they are the Silverlight, not WPF versions.

0
Petar Mladenov
Telerik team
answered on 17 Oct 2011, 11:31 AM
Hi Kevin ,

 Unfortunately, we were unable to reproduce such issue. We tried with WPF Q2 2011 SP (0920) version of RadControls  (and Blend 4) and the following code in Blend:

<telerik:RadTreeView Name="ExplorerTree">
        <telerik:RadTreeView.ItemContainerStyle>
            <Style TargetType="telerik:RadTreeViewItem">
                <Setter Property="CheckState" Value="On" />        
            </Style>     
        </telerik:RadTreeView.ItemContainerStyle>
    </telerik:RadTreeView>
and it worked correctly. Please note that you cannot use SL solution and just replace its SL dlls with WPF ones. You have to use new WPF Application and place the WPF dlls in it. In WPF you also need the Telerik.Windows.Data dlls. Please let us know if this helped you.Regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TreeView
Asked by
Todor
Top achievements
Rank 1
Answers by
Todor
Top achievements
Rank 1
Valentin.Stoychev
Telerik team
Kevin
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or