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

AG_E_PARSER_BAD_TYPE Error

5 Answers 78 Views
Menu
This is a migrated thread and some comments may be shown as answers.
om
Top achievements
Rank 1
om asked on 24 Jun 2009, 08:50 PM
Hi,
today I downloaded RadGridView version 2009.1.526.1020. I added grid in xaml like:

<

 

UserControl x:Class="SilverlightApplication2.MainPage"

 

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

 

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

 

 

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

 

 

Width="400" Height="300">

 

 

 

<Grid x:Name="LayoutRoot" >

 

 

 

<Grid.RowDefinitions>

 

 

 

<RowDefinition />

 

 

 

<RowDefinition Height="40" />

 

 

 

</Grid.RowDefinitions>

 

 

 

 

<grid:RadGridView x:Name="radGridView" Grid.Row="0" AutoGenerateColumns="True" >

 

 

 

</grid:RadGridView>

 

 

 

</Grid>

 

 

</

 

UserControl>

and Code behind look like:

 

using

 

System.Windows;

 

 

 

using

 

System.Windows.Controls;

 

 

 

using

 

System.Windows.Documents;

 

 

 

using

 

System.Windows.Input;

 

 

 

using

 

System.Windows.Media;

 

 

 

using

 

System.Windows.Media.Animation;

 

 

 

using

 

System.Windows.Shapes;

 

 

 

using

 

System.Windows.Data;

 

 

 

using

 

Telerik.Windows.Controls;

 

 

 

using

 

System.Collections.ObjectModel;

 

 

 

namespace

 

SilverlightApplication2

 

{

 

public partial class MainPage : UserControl

 

 

 

 

{

 

static public ItemCollection Items = new ItemCollection();

 

 

public MainPage()

 

{

InitializeComponent();

 

// Load the Cateogries into the Collection.

 

 

 

 

LoadItems();

 

this.radGridView.ItemsSource = Items;

 

}

 

private void LoadItems()

 

{

Items.Add(

new Item("1", "Item 1"));

 

Items.Add(

new Item("2", "Item 2"));

 

Items.Add(

new Item("3", "Item 3"));

 

}

}

 

public class ItemCollection : ObservableCollection<Item>

 

{

 

public ItemCollection()

 

{

}

}

 

public class Item

 

 

 

 

{

 

private string _id;

 

 

public string Id

 

{

 

get { return _id; }

 

 

set { _id = value; }

 

}

 

private string _name;

 

 

public string Name

 

{

 

get { return _name; }

 

 

set { _name = value; }

 

}

 

public Item()

 

{

}

 

public Item(string id, string name)

 

{

_id = id;

_name = name;

}

}

}

Now, as soon, I run my application I get error: AG_E_PARSER_BAD_TYPE [Line: 1 Position: 4505].

Am I doing something wrong?

5 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 25 Jun 2009, 05:55 AM
Hi om,

Can you verify if you have reference to Telerik.Windows.Data.dll?

Greetings,
Vlad
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
itsenes
Top achievements
Rank 1
answered on 27 Aug 2009, 03:38 PM
i'm also evaluating the silverlight controls suite and i have the same issue when using the RadHtmlPlaceholder control. My application (sl3) is using CAL (prism) and the RadHtmlPlaceholder is hosted inside a usercontrol which is dynamically instatiated and added to a region.
is this not a supported scenario? am i doing something wrong here?

please let me know what you think - thank you in advance

giannis
0
om
Top achievements
Rank 1
answered on 27 Aug 2009, 04:07 PM
Thanks Vlad, it solved the problem!!!
0
itsenes
Top achievements
Rank 1
answered on 28 Aug 2009, 08:34 AM
didn't solve my problem. anything else i could try?

thanks
0
Miroslav
Telerik team
answered on 28 Aug 2009, 04:19 PM
Hello giannis,

The HtmlPlacehoder needs the Windowless property of the plugin to be true.

Also, do you see the error if you place the HtmlPlaceholder in xaml in the same UserControl that it will normally appear in?

Hopefully this will work in your case,

Regards,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Menu
Asked by
om
Top achievements
Rank 1
Answers by
Vlad
Telerik team
itsenes
Top achievements
Rank 1
om
Top achievements
Rank 1
Miroslav
Telerik team
Share this question
or