ChartHierarchicalViewDescriptor not found

3 posts, 0 answers
  1. Eric
    Eric avatar
    14 posts
    Member since:
    Jun 2012

    Posted 11 Aug 2011 Link to this post

    I am trying to build a hiearchical chart and have the following code:

    <Telerik:RadChart Height="350" x:Name="WeightChart" Width="750">
        <Telerik:RadChart.HierarchicalViewDescriptors>
            <Telerik:ChartHierarchicalViewDescriptor>
     
            </Telerik:ChartHierarchicalViewDescriptor>
        </Telerik:RadChart.HierarchicalViewDescriptors>
    </Telerik:RadChart>

    And I get the following error message: 

    The tag 'ChartHierarchicalViewDescriptor' does not exist in XML namespace 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting'

    I looked in your documentation and it is included in that namespace.
  2. Eric
    Eric avatar
    14 posts
    Member since:
    Jun 2012

    Posted 11 Aug 2011 Link to this post

    I found the solution. If you drag and drop a control onto a page, it adds the following xmlns reference:
    xmlns:Telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"


    You should really have this one:

    Should this be reported as an issue to be fixed? It's annoying.


  3. UI for WPF is Visual Studio 2017 Ready
  4. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 16 Aug 2011 Link to this post

    Hi Eric,

    Actually ChartHierarchicalViewDescriptor is in the Telerik.Windows.Controls.Charting namespace and not in Telerik.Windows.Controls namespace and that is why you received the error when using clr-namespace directive.

    You either need to use the schema directive xmlns:Telerik="http://schemas.telerik.com/2008/xaml/presentation" that wraps both Telerik.Windows.Controls and Telerik.Windows.Controls.Charting namespaces (recommended), or you need to add separate clr-namespace directives for each namespace.


    Regards,
    Giuseppe
    the Telerik team

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

Back to Top