Cannot add DataForm to xaml

6 posts, 0 answers
  1. Travis Gorrie
    Travis Gorrie avatar
    9 posts
    Member since:
    Nov 2009

    Posted 18 Mar 2011 Link to this post

    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.

  2. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 19 Mar 2011 Link to this post

    try using


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

    thanks
    dco
  3. DevCraft banner
  4. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 21 Mar 2011 Link to this post

    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
  5. Travis Gorrie
    Travis Gorrie avatar
    9 posts
    Member since:
    Nov 2009

    Posted 21 Mar 2011 Link to this post

    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.

  6. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 21 Mar 2011 Link to this post

    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
  7. Travis Gorrie
    Travis Gorrie avatar
    9 posts
    Member since:
    Nov 2009

    Posted 21 Mar 2011 Link to this post

    That did it. Thank you.
Back to Top
DevCraft banner