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

[Solved] Exception in GridView after upgrading

1 Answer 100 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bhavik
Top achievements
Rank 1
Bhavik asked on 02 Feb 2011, 02:38 AM
Hi,

I recently upgraded my silverlight project from Silverlight 3 to Silverlight 4. I also upgraded the Telerik controls for Silveright from 2009.2.812.1030 to 2010.3.1110.1040

I get an exception in GridView when I try to load the site. Following are the details:

I have following references included in my project related to GridView:

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

I have following lines in my App.xaml:

xmlns

 

 

:Telerik_Windows_Controls_GridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"

 

The application errors out at following place in App.xaml.cs:

InitializeComponent() with following error:

The type 'GridViewItemsControl' was not found. [Line: 1157 Position: 412]

At this line following code is present in App.xaml:

<

 

 

Telerik_Windows_Controls_GridView:GridViewItemsControl x:Name="PART_RootItemsControl" Background="{TemplateBinding Background}" ParentRow="{TemplateBinding ParentRow}" ScrollMode="{TemplateBinding ScrollMode}" ShowColumnFooters="{TemplateBinding ShowColumnFooters}" ShowColumnHeaders="{TemplateBinding ShowColumnHeaders}" ShowGroupPanel="{TemplateBinding ShowGroupPanel}" telerik:StyleManager.Theme="{StaticResource Theme}"/>

 

Looks like somehow it is not able to find the GridView control. I have also heard that Telerik have changed something related to GridView in Telerik.Windows.Control.GridView and Telerik.Windows.Control.Data in the 2010 version.

Can anyone please help me out ?

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 02 Feb 2011, 07:45 AM
Hello,

 You need to extract (and use) the latest grid templates with Blend to avoid such errors. 

Regards,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Bhavik
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or