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

AG_E_UNKNOWN_ERROR [Line: 16 Position: 59]

0 Answers 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David Sandor
Top achievements
Rank 1
David Sandor asked on 08 Jul 2009, 07:56 PM
I have been using RAD Controls for WPF for some time now without trouble.  However I installed RAD Controls for SL Q2 2009 and I am having a problem.

First, nothing was installed into my Toolbox in my VS 2008 IDE.  So, I found the SL binaries and added them to the toolbox manually.  RadGridView showed up.. 

Drag and drop into the XAML adds:

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

Then the XAML is added:

<telerikGridView:RadGridView></telerikGridView:RadGridView>

This errors immediately with the AG_E_UNKNOWN_ERROR.  

--- This environment has VS 2010 installed and Silverlight 3 components installed.
So I downloaded the internal build for SL3 (Q1 2009) and referenced that .dll for the rad grid and tried it again with the same error.  Any clue what is going on here?  I can't use any telerik components for SL.. only the Control Toolkit published on codeplex works.

Thanks,
David

EDIT:  For fun, I loaded up VS 2010 and created a new SL3 Application project.  Referenced the GridView assembly from the Telerik Q1 2009 SL3 Internal build 622.  Drag RadGridView onto a blank grid in the fresh new SL app (Page.xaml) and a message box appears:  Value cannot be null.  Parameter name: childOrDescendant

EDIT EDIT:  Fixed it... When you drag and drop RadGridView from the toolbox to the canvas (Grid) it only adds an assembly reference to Telerik.Windows.Controls.GridView.  I also referenced Telerik.Windows.Controls and Telerik.Windows.Data (not sure which one was needed but I added both) and it is working now.

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
David Sandor
Top achievements
Rank 1
Share this question
or