Unable to design RadTreeView in Blend

9 posts, 0 answers
  1. Todor
    Todor avatar
    13 posts
    Member since:
    Nov 2008

    Posted 08 Jun 2010 Link to this post

    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 ??
  2. Todor
    Todor avatar
    13 posts
    Member since:
    Nov 2008

    Posted 10 Jun 2010 Link to this post

    Did anyone try that?
  3. UI for WPF is Visual Studio 2017 Ready
  4. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 10 Jun 2010 Link to this post

    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.
  5. Todor
    Todor avatar
    13 posts
    Member since:
    Nov 2008

    Posted 11 Jun 2010 Link to this post

    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!
  6. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 15 Jun 2010 Link to this post

    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.
  7. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 15 Jun 2010 Link to this post

    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.
  8. Todor
    Todor avatar
    13 posts
    Member since:
    Nov 2008

    Posted 16 Jun 2010 Link to this post

    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.
  9. Kevin
    Kevin  avatar
    10 posts
    Member since:
    Jul 2012

    Posted 12 Oct 2011 Link to this post

    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.

  10. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 17 Oct 2011 Link to this post

    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 >>

Back to Top
UI for WPF is Visual Studio 2017 Ready