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

Error in Blend 3

6 Answers 51 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ruban
Top achievements
Rank 1
Ruban asked on 21 Aug 2009, 01:08 PM
HI,
I'm getting the following errror in Blend 3:
xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" 

Works fine in Visual studio,

6 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 24 Aug 2009, 06:36 AM
Hi Ruban,

Could you post the original error message which will help us rosolve your problem? The text in your previous post is just a namespace mapping declaration which does not provide enough information.

Thanks in advance.

Regards,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ruban
Top achievements
Rank 1
answered on 24 Aug 2009, 09:00 AM
The error I get is :
The name "RadGridView" doesn't exist in the namespace "clr-namespace.Telerik.Windows.Control;assembly=Telerik.Windows.Controls.GridView"

Xaml:
<UserControl x:Class="ChartClient.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:control="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"
    xmlns:controlCharting="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting"
    xmlns:grid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
    xmlns:data="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data"
    Loaded="UserControl_Loaded">
  <Grid x:Name="LayoutRoot" ShowGridLines="False" Background="#000000">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Vertical" Grid.Row="1"  Grid.Column="0" VerticalAlignment="Center">
            <control:RadChart Name="Chart1"  Height="600" Margin="50,0,50,0"/>
        </StackPanel>
        <StackPanel Orientation="Vertical" Grid.Column="1" Grid.Row="1" VerticalAlignment="Center">
            <TextBlock Name="Grid1Title" Text="All Investors" TextAlignment="Center" FontFamily="Verdana" FontSize="16" Foreground="#FFFFFF" FontWeight="Bold"/>
            <grid:RadGridView IsReadOnly="True" Width="600" ColumnsWidthMode="Fill" x:Name="Grid1" AutoGenerateColumns="False" Height="800" ShowColumnFooters="True">
                <grid:RadGridView.Columns>
                    <grid:GridViewDataColumn UniqueName="accountname" Header="Account Name">
                        <grid:GridViewDataColumn.AggregateFunctions>
                            <data:CountFunction Caption="Total: " />
                        </grid:GridViewDataColumn.AggregateFunctions>
                    </grid:GridViewDataColumn>
                    <grid:GridViewDataColumn UniqueName="accountno" Header="Account No" IsVisible="False"/>
                    <grid:GridViewDataColumn UniqueName="allocation" Header="Allocation" DataFormatString="{}{0:0}">
                        <grid:GridViewDataColumn.AggregateFunctions>
                            <data:SumFunction ResultFormatString="{}{0:0}" SourceField="allocation"/>
                        </grid:GridViewDataColumn.AggregateFunctions>
                    </grid:GridViewDataColumn>
                    <grid:GridViewDataColumn UniqueName="demand" Header="Demand" DataFormatString="{}{0:0}">
                        <grid:GridViewDataColumn.AggregateFunctions>
                            <data:SumFunction ResultFormatString="{}{0:0}" SourceField="demand"/>
                        </grid:GridViewDataColumn.AggregateFunctions>
                    </grid:GridViewDataColumn>
                    <grid:GridViewDataColumn UniqueName="country" IsVisible="False"/>
                </grid:RadGridView.Columns>
            </grid:RadGridView>
        </StackPanel>
    </Grid>
</UserControl>
0
Ruban
Top achievements
Rank 1
answered on 27 Aug 2009, 08:32 AM
Fixed, I created a new project with the same references and seems to work. Must have used older versions of controls.
0
Accepted
Nedyalko Nikolov
Telerik team
answered on 27 Aug 2009, 08:42 AM
Hi Ruban,

I cannot simulate this exception in Expression Blend 3. I'm attaching a sample project based on your code snippet and everything works fine on my end.
Can you provide me with more detailed information how to simulate this issue?

One possible reason for such an error is that Expression Blend 3 needs Silverlight 3 and of course Telerik assemblies built on Silverlight3. Can you confirm that you have installed Silverlight3?

Greetings,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ruban
Top achievements
Rank 1
answered on 27 Aug 2009, 08:45 AM
Thanks Nedyalko,  I created a new project with the same references and seems to work. Must have used older versions of controls.
Seems to work now.
0
Kristin
Top achievements
Rank 1
answered on 21 Mar 2011, 09:50 PM
I had the same problem. one day it was working good, the next day all of the telerik references were not being seen. I noticed that it happened right after a telerik update. so I checked the .csproj file to find:

 <Reference Include="Telerik.Windows.Controls.GridView, Version=2010.3.1314.1040, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
 <HintPath>..\..\..\..\..\AppData\Roaming\Telerik\Updates\RadControls_for_Silverlight4_2010_3_1314_Dev_hotfix\Binaries\Silverlight\Telerik.Windows.Controls.GridView.dll</HintPath>
    </Reference>

So I changed them to simply be:
<Reference Include="Telerik.Windows.Controls.GridView" />


Now all is well.
Tags
GridView
Asked by
Ruban
Top achievements
Rank 1
Answers by
Milan
Telerik team
Ruban
Top achievements
Rank 1
Nedyalko Nikolov
Telerik team
Kristin
Top achievements
Rank 1
Share this question
or