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

ChartHierarchicalViewDescriptor not found

2 Answers 44 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 11 Aug 2011, 06:52 PM
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 Answers, 1 is accepted

Sort by
0
Eric
Top achievements
Rank 1
answered on 11 Aug 2011, 07:24 PM
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.


0
Giuseppe
Telerik team
answered on 16 Aug 2011, 09:58 AM
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 >>

Tags
Chart
Asked by
Eric
Top achievements
Rank 1
Answers by
Eric
Top achievements
Rank 1
Giuseppe
Telerik team
Share this question
or