Access captured data in the DataForm

2 posts, 0 answers
  1. Vuyiswa
    Vuyiswa avatar
    206 posts
    Member since:
    Jan 2010

    Posted 18 May 2018 Link to this post

    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 

     

     

     

     

  2. Vuyiswa
    Vuyiswa avatar
    206 posts
    Member since:
    Jan 2010

    Posted 19 May 2018 in reply to Vuyiswa Link to this post

    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

                   

Back to Top