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

System.Windows.Controls.Data + RadGridView + Datapager

5 Answers 193 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
jason h
Top achievements
Rank 1
jason h asked on 24 Aug 2009, 01:00 PM
Desired outcome:
Use a RadGridView with a datapager.

Problem:
The only time the RadGridView will run properly is if the System.Windows.Controls assembly from the Telerik install is used.  However, there is no DataPager class defined in that assembly (whereas it is in the Silverlight SDK's version of that assembly, which I presume I *should* be using.  If i use the standard one from the SDK, everything compiles, but I get this runtime error:

System.Windows.Markup.XamlParseException occurred
  Message="System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=3d8c6023c75a3242' or one of its dependencies. The system cannot find the file specified.\r\nFile name: 'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=3d8c6023c75a3242'\r\n   at Telerik.Windows.Controls.GridView.GridViewDataControl.InitializeGroupCount()\r\n   at Telerik.Windows.Controls.GridView.GridViewDataControl..ctor()\r\n   at Telerik.Windows.Controls.RadGridView..ctor() [Line: 0 Position: 0]\r\n   --- Inner Exception ---\r\nCould not load file or assembly 'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=3d8c6023c75a3242' or one of its dependencies. The system cannot find the file specified.\r\n"

What am I missing here?

5 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 24 Aug 2009, 01:40 PM
Hello jason harper,

As of Q2 2009 SP1 there is no need to include any system assemblies in your project since all required classes that we used prior Silverlight 3 are now part of the Silverlight 3 framework. You could try to exclude all system assemblies from your project and try to rebuild it.

The only required references in  Q2 2009 SP1 are Telerik.Windows.Controls, Telerik.Windows.Controls.GridView, Telerik.Windows.Controls.Input, and Telerik.Windows.Data.

Hope this helps.

All the best,
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
jason h
Top achievements
Rank 1
answered on 24 Aug 2009, 03:09 PM
We have a build from 7/8/09.  Is there a newer build we should be using to get past this issue? 
0
Stefan Dobrev
Telerik team
answered on 24 Aug 2009, 03:55 PM
Hi Jason,

If you want to use the Microsoft's DataPager control you should add a reference to  System.Windows.Controls.Data.dll provided in Silverlight 3 SDK. You can download the it here. Also you can look at this online example, which illustrates how to use both DataPager and RadGridView together.

Greetings,
Stefan Dobrev
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
jason h
Top achievements
Rank 1
answered on 24 Aug 2009, 04:50 PM
The RadGridView is looking for this version of System.Windows.Controls.Data (note the public key token):

'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=3d8c6023c75a3242'

However, fully qualified name of the Microsoft silverlight sdk's version of that assembly is (
note the different public key token):
System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

We're running version 1.0 of the Q2 2009 Telerik controls.  Do we need to get a new build (previously there was mention of an SP1 for Q2 2009)?

thanks
-Jason
0
Stefan Dobrev
Telerik team
answered on 26 Aug 2009, 02:19 PM
Hi jason,

You should get the Silverlight 3 version of RadControls for Silverlight. This was officially introduced in our SP1 release.

Kind regards,
Stefan Dobrev
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.
Tags
General Discussions
Asked by
jason h
Top achievements
Rank 1
Answers by
Milan
Telerik team
jason h
Top achievements
Rank 1
Stefan Dobrev
Telerik team
Share this question
or