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

Cannot add DataForm to xaml

5 Answers 111 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Travis Gorrie
Top achievements
Rank 1
Travis Gorrie asked on 18 Mar 2011, 07:32 PM
I just installed the new Q1 2011 telerik controls and I cannot seem to reference the DataForm control correctly.
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

Sort by
0
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 19 Mar 2011, 03:11 PM
try using


you then dont need to add any other name spaces for any of the telerik assemblies in the xaml

thanks
dco
0
Maya
Telerik team
answered on 21 Mar 2011, 01:40 PM
Hi David Ocasio,

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. 
 

All the best,
Maya
the Telerik team
0
Travis Gorrie
Top achievements
Rank 1
answered on 21 Mar 2011, 03:27 PM
Thanks for the replies.

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

="Employee"/> RadDataForm not found missing reference

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.

0
Vanya Pavlova
Telerik team
answered on 21 Mar 2011, 03:37 PM
Hello David Ocasio,

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
0
Travis Gorrie
Top achievements
Rank 1
answered on 21 Mar 2011, 04:10 PM
That did it. Thank you.
Tags
DataForm
Asked by
Travis Gorrie
Top achievements
Rank 1
Answers by
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
Maya
Telerik team
Travis Gorrie
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or