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

Problem Error Type 'Telerik.Windows.Controls.RadGridView' is not defined.

2 Answers 263 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 13 Jun 2011, 10:40 AM
Hello,

I ' m new with the RadGridView controls.

When I add an RadGridview control to an existing Business application Silverlight Project (Silverlight 4). I get the following error
Type 'Telerik.Windows.Controls.RadGridView' is not defined.

<navigation:Page xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  x:Class="MFIE_ValueInvestingScreener_2010.Telerik" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="Telerik Page">
    <Grid x:Name="LayoutRoot">
        <telerik:RadGridView Background="#68B3C7C7" Name="MyRaView">
        </telerik:RadGridView>
    </Grid>
</navigation:Page>

In the designer view (Telerik.g.i.vb)  it propose the following solution
change  Telerik.Windows.Controls.RadGridView into  global.Telerik.Windows.Controls.RadGridView
When I just change the XAML code into
<Grid x:Name="LayoutRoot"
        <telerik:RadGridView
        </telerik:RadGridView
    </Grid>

I don't have the error, but this way I can't reach the grid in the code behind.

Does anyone has a solution for this?

Kind regards,

Philip

2 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 13 Jun 2011, 10:59 AM
Hello Philip,

Please make sure that all required assemblies are referenced by the project. All required ones are:

Telerik.Windows.Data
Telerik.Windows.Controls
Telerik.Windows.Controls.GridView
Telerik.Windows.Controls.Input    

Hope this helps.


Greetings,
Milan
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
Philip
Top achievements
Rank 1
answered on 13 Jun 2011, 01:42 PM
Thanks.
I reconfigured the project with Rad Control tools for Silverlight
And this seems to work.

Kind regards,

Philip
Tags
GridView
Asked by
Philip
Top achievements
Rank 1
Answers by
Milan
Telerik team
Philip
Top achievements
Rank 1
Share this question
or