DataForm not working on Device

5 posts, 0 answers
  1. Yunuen Sanchez
    Yunuen Sanchez avatar
    31 posts
    Member since:
    Aug 2009

    Posted 23 May Link to this post

    I have a weird problem with DataForm, it works perfectly on the simulator but as soon as I try the app on an iPad or iPhone, the component is failing.

    I can't interact with the TKDataFormOptionsEditor fields, and If I try to change the groupView attributes on this method I got an instant crush

    public override void UpdateGroupView(TKDataForm dataForm, TKEntityPropertyGroupView groupView, uint groupIndex)
    {
                groupView.TitleView.BackgroundColor = UIColor.LightGray;
    }

    As I said, everything works fine on the simulator. Am I missing something?

    UI for Xamarin 2016.2.513.2
    iOS 9.3

  2. Miroslava
    Admin
    Miroslava avatar
    19 posts

    Posted 25 May Link to this post

    Hello Yunuen,

    Thank you for contacting us.

    Currently we are not able to reproduce such issue. Could you please send us a code snippet or a sample project where the issue occurs.

    I am looking forward to your reply.

    Regards,
    Miroslava
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
  4. Yunuen Sanchez
    Yunuen Sanchez avatar
    31 posts
    Member since:
    Aug 2009

    Posted 25 May Link to this post

    Hi Miroslava,

    The problem seems to be related to the Xamarin Linker. For example, if I try the following code on my iPad

    (UpdateEditor on TKDataFormDelegate)
    ((TKDataFormOptionsEditor)editor).SelectedOptionLabel.TextColor = UIColor.Black;

    I get a Invalid Cast Exception, but if I declare a dummy instance on my Controller

    TKDataFormOptionsEditor test = new TKDataFormOptionsEditor();

    the InvalidCastException is gone!

    Still can't interact with the TKDataFormOptionsEditor fields, though. I can see them but touch doesn't work.

    Do you have any idea what's going on? 

     

  5. Miroslava
    Admin
    Miroslava avatar
    19 posts

    Posted 27 May Link to this post

    Hello Yunuen,

    I wasn't able to reproduce this issue neither on simulator or device. 
    TKDataFormOptionsEditor is used to display option lists on its own screen and it requires the usage of TKDataFormViewController. This is described in our documentation. Please check this article
    If however the issue still exists, please send me your project. 

    Regards,
    Miroslava
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Yunuen Sanchez
    Yunuen Sanchez avatar
    31 posts
    Member since:
    Aug 2009

    Posted 31 May Link to this post

    Hi Miroslava, I appreciate your support. 

    I was in a hurry to solve this issue, so I changed the approach and switch to a different component. I'll get back to DataForm later, if the problem persist, you'll hear from me on the forums.

    Thanks again!

Back to Top
DevCraft banner