Telerik Forums
UI for Universal Windows Platform Forum
1 answer
54 views
The DataForm is great if the data suits the standard controls in the form, but I also make significant use of lookup tables in Comboboxes, as well as CheckBoxes and Radio Buttons. Does anyone have any examples of incorporating these into the DataForm.
Stefan Nenchev
Telerik team
 answered on 01 Nov 2017
1 answer
45 views

I am trying to test the DataForm control but when I tried the example code on the website  the complier says "this.root" does not exist.

Heres my code

public MainPage()
        {
            this.InitializeComponent();
            
            var form = new RadDataForm();
            form.Item = new JobDefn(0, 0, 0, 0, 0, 123456, new DateTime(2017, 2, 7), new DateTime(2017, 2, 8));    
            this.root.Children.Add(form);   // this .root  problem with this line
        }

and the error

Error    CS1061    'MainPage' does not contain a definition for 'root' and no extension method 'root' accepting a first argument of type 'MainPage' could be found (are you missing a using directive or an assembly reference?)    

root must be related to Frame somehow but I just don't see it

it also fails if I move it to other pages

I have tried adding every Telerik namspace that seemed to be a possibilty

using Telerik.Core.Data;
using Telerik.Data;
using Telerik.UI;
using Telerik.UI.Xaml.Controls.Data.DataForm;

 

Lance | Manager Technical Support
Telerik team
 answered on 10 Feb 2017
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?