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
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
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
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
Vlad
the Telerik team
Can you verify if these are our .NET 4 binaries?
All the best,Vlad
the Telerik team
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.
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.
Vanya Pavlova
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
