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

[Solved] Blend 4 designer exception

9 Answers 235 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.
Ken
Top achievements
Rank 1
Ken asked on 28 Oct 2010, 03:38 PM
Hi,

When loading a page that contains the RadGridView in Blend 4 i get the following exception: "the local property "ItemsSource" can only be applied to types that are derived from "DataControl"" and the designer fails to load.

At runtime though and even in the VS2010 designer, it works.

Any idea what the problem is?

Thanks!

9 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 28 Oct 2010, 03:50 PM
Hello Adrian,

 Can you check if you have all needed references for grid? You can check this article for more info. 

Best wishes,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ken
Top achievements
Rank 1
answered on 28 Oct 2010, 03:53 PM
Hi Vlad,

Can you be a bit more specific please? By this I mean:
1. What references do you mean (I have the three mentioned in the article).
2. If I didn't have the references, would it work at runtime? Or would it even compile?

Thanks,
Adrian
0
Vlad
Telerik team
answered on 28 Oct 2010, 04:01 PM
Hi,

 No matter if this is in design-time or runtime you will need reference to:

Telerik.Windows.Controls.dll
Telerik.Windows.Data.dll
Telerik.Windows.Controls.GridView.dll
Telerik.Windows.Controls.Input.dll

Sincerely yours,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ken
Top achievements
Rank 1
answered on 28 Oct 2010, 04:02 PM
Ok, I already have all those referenced. What could I check next?
0
Vlad
Telerik team
answered on 29 Oct 2010, 01:24 PM
Hi,

 Can you verify if these are our .NET 4 binaries?

All the best,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
jhonny206
Top achievements
Rank 1
answered on 03 Nov 2010, 12:23 PM
I had the same error even after I had referenced the libraries suggested by Vlad.
The fix is: In addition to the libraries suggested by Vlad you have to add a reference to "Telerik.Windows.Controls.Data", since that's the library where "DataControl" is located.

0
natraj
Top achievements
Rank 1
answered on 16 Aug 2011, 11:43 PM
I am getting the same error even after including all the dlls stated above.. please help.

0
Vanya Pavlova
Telerik team
answered on 17 Aug 2011, 11:53 AM
Hi Natraj,

 

May you post the xaml snippet where you set this ItemsSource property? It could be great if you may share whether the same error occured in Visual Studio or not.  You my try to delete the referenced assemblies and add it again only in Blend environment and to see what happens after rebuild. The best option would be to open a new support ticket and attach your application where we can test this behavior by our side. Any additional information about the grid version you used will be highly appreciated as well. 


 

Kind regards,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
natraj
Top achievements
Rank 1
answered on 17 Aug 2011, 04:39 PM
Needed to close all instances of blend and reopen it to resolve the error.
Tags
GridView
Asked by
Ken
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Ken
Top achievements
Rank 1
jhonny206
Top achievements
Rank 1
natraj
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or