I've added the reference as follows:
xmlns
:telerikDataForm="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data.DataForm"
But my RadDataForm below has the squigglies, and gives error that type telerikDataForm:RadDataForm was not found are you missing a reference.
<
telerikDataForm:RadDataForm
What am I missing?
Thanks.
5 Answers, 1 is accepted
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
you then dont need to add any other name spaces for any of the telerik assemblies in the xaml
thanks
dco
Generally, the uri namespace above will enable you to define all RadControls without the need of specifying a namespace for each of them. As far as the error you get is concerned, it is due to declaring a wrong namespace. You will need to use the Telerik.Windows.Controls.Data/ DataForm instead. You may take a look at our online documentation for further reference.
Maya
the Telerik team
It appears I might have something unconventional going on. I've added
xmlns
:telerik="http://schemas.telerik.com/2008/xaml/presentation"
before and does not work. And I have looked at the getting started for the DataForm as well.
I have the following reference C:\Program Files\Telerik\RadControls for Silverlight Q1 2011\Binaries\Silverlight\Telerik.Windows.Data.dll added to the solution.
The following does not give me an error
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
But it does not allow me to add the RadDataForm
<
telerik:RadDataForm x:Name="DataForm1" CurrentItem="Binding" Header
I cannot add it via the
xmlns
:telerikDataForm="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data.DataForm"
.DataForm not found missing reference.
Any Thoughts?
Thanks.
In order to use the Telerik schema, you have to add a reference to at least the Telerik.Windows.Controls.dll. As my colleague Maya pointed out the RadDataForm is located in Telerik.Windows.Controls.Data and the correct namespace in your case is the following one:
xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Data"
Once you added the full list of reference needed for RadDataForm, you may use both namespaces.
Also you may find attached sample project that demonstrates this approach.
Regards,
Vanya Pavlova
the Telerik team