This is a migrated thread and some comments may be shown as answers.
Access captured data in the DataForm
1 Answer 16 Views
This is a migrated thread and some comments may be shown as answers.
Vuyiswa
Top achievements
Rank 2
Vuyiswa asked on 18 May 2018, 10:03 PM

Good Day All 

i would like to know a few things about the DataForm Control. i am not a fan of Wizards that will automatically update data in my database , i would like to do that myself in a custom Datalayer. 

I like the part that the control is able to generate a clean UI from a Model which i like ,

 

1 ) My first question is that since the UI is generated from the model, can i have values that have been captured by the user programmatically from the DataForm.

2) Can i have Buttons Embedded into it and have click events of those buttons outside indipendently

Thanks 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Vuyiswa
Top achievements
Rank 2
answered on 19 May 2018, 07:21 PM

I found a solution from inspecting the control after i enter the data. first thing you need to do so that you can get the data from the control is to make sure its committed and from there you can get the data this way 

1) 

                ExampleModel model = new ExampleModel ();  
                 model  = (ExampleModel) RadDataForm1.Source; 

 

and after that you can call a datalayer function to do the rest

2) Its not a good idea , just put wrap it with a StackLayout layout and wrap it with a ScrollView so that it will scroll 

Thanks

               

Asked by
Vuyiswa
Top achievements
Rank 2
Answers by
Vuyiswa
Top achievements
Rank 2
Share this question
or