This is a migrated thread and some comments may be shown as answers.

DataForm not working on Device

4 Answers 67 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Yunuen Sanchez
Top achievements
Rank 1
Yunuen Sanchez asked on 23 May 2016, 11:18 PM

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

4 Answers, 1 is accepted

Sort by
0
Miroslava
Telerik team
answered on 25 May 2016, 08:44 AM
Hello Yunuen,

Thank you for contacting us.

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
0
Yunuen Sanchez
Top achievements
Rank 1
answered on 25 May 2016, 11:13 PM

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? 

 

0
Miroslava
Telerik team
answered on 27 May 2016, 11:51 AM
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
0
Yunuen Sanchez
Top achievements
Rank 1
answered on 31 May 2016, 05:39 PM

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!

Tags
DataForm
Asked by
Yunuen Sanchez
Top achievements
Rank 1
Answers by
Miroslava
Telerik team
Yunuen Sanchez
Top achievements
Rank 1
Share this question
or