System.Windows.Controls.Data + RadGridView + Datapager

6 posts, 0 answers
  1. jason h
    jason h avatar
    3 posts
    Member since:
    Aug 2009

    Posted 24 Aug 2009 Link to this post

    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?
  2. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 24 Aug 2009 Link to this post

    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.
  3. jason h
    jason h avatar
    3 posts
    Member since:
    Aug 2009

    Posted 24 Aug 2009 Link to this post

    We have a build from 7/8/09.  Is there a newer build we should be using to get past this issue? 
  4. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 24 Aug 2009 Link to this post

    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.
  5. jason h
    jason h avatar
    3 posts
    Member since:
    Aug 2009

    Posted 24 Aug 2009 Link to this post

    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
  6. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 26 Aug 2009 Link to this post

    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.
Back to Top