Dataform not shown on iOS

Hi ive Testing the sfdataform. On Android all working fine, but on iOS the dataform is not shown in the app.
I've taken the  SfDataFormRenderer.Init(); to the FinishedLaunching method of the AppDelegate, but nothing changed.

Here's the XAML Iam using
 <data:SfDataForm
                x:Name="dataForm"
                DataObject="{Binding ContactInfo}"
                LabelPosition="Top"
                AutoGeneratingDataFormItem="DataForm_AutoGeneratingDataFormItem"
                VerticalOptions="StartAndExpand"
                >
                <data:SfDataForm.Behaviors>
                    <beh:EventToCommandBehavior EventName="Validating"  Command="{Binding ValidationCommand}" EventArgsConverter="{StaticResource Validator}" />
                </data:SfDataForm.Behaviors>
        </data:SfDataForm>


Hope anybody can help.
Thanks in advance

Andreas

12 Replies

SV Srinivasan Vasu Syncfusion Team March 26, 2018 11:21 AM UTC

Hi Andreas, 
 
Thanks for contacting Syncfusion support. 
 
We have checked your query with “DataForm not shown in iOS”. To launch the dataform in iOS, you should call SfDataFormRenderer.Init() in the FinishedLauching overriding method of AppDelegate class after the Xamarin.Forms framework initialization and before the LoadApplicaiton is called. 
 
Please refer the below link: 
 
Please refer the code example 
public override bool FinishedLaunching(UIApplication appNSDictionary options) 
{ 
  global::Xamarin.Forms.Forms.Init (); 
 SfDataFormRenderer.Init(); 
LoadApplication (new App ()); 
 
 } 
 
We have prepared a sample based on the provided information. Please find the same below, 
 
 
Still you are facing the issue, after initialization of DataForm Renderer in the mentioned AppDelegate class, could you please modify the sample or code snippet with replication scenario to reproduce the issue? So that we can analyze on your requirement further and provide you a possible solution. 
 
Regards, 
Srinivasan 
 



AR Arsenio November 29, 2018 05:52 AM UTC

I have the same problem. I have a xamarin forms solution with masterdetail navigation template and in android the sfdataform is working fine but in ios the sfdataform is not shown.

I can run your sfdataform example fine in IOS, the only big diferences that I can see with my proyect is the navigation and that i'm usign the latest version of the nugets in my solution.

Regards,

Arsenio


JN Jayaleshwari N Syncfusion Team November 29, 2018 11:38 AM UTC

Hi Arsenio, 
 
Thanks for Contacting Syncfusion Support. 
 
We have checked the reported query “Dataform not shown on iOS with Master-details page” from our end. Unfortunately the reported issue does not reproduced at our end. We have prepared the sample based on the provided information by loading the data form with master details page with latest version which works as expected. 
 
We have attached the tested sample (16.3.0.29) for your reference and you can download the same from the following location. 
 
Could you please check with the above whether the reported issue reproduced in our sample also? If not, we would request you to modify the sample or could you please share the xaml code snippet which would be better to provide appropriate solution. 
 
Regards, 
Jayaleshwari N 



AR Arsenio November 29, 2018 09:39 PM UTC

Now, I can see what is the problem.

In IOS we need the options VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" added to the SfDataForm.

After that, now I can see the SfDataForm in IOS.

Regards,

Arsenio


JN Jayaleshwari N Syncfusion Team November 30, 2018 04:35 AM UTC

Hi Arsenio, 
 
Thanks for the update. 
We are glad to know that your issue has been resolved. Please get in touch if you would require further assistance. 
 
Regards, 
Jayaleshwari N. 



MI Michael replied to Arsenio Guzman October 25, 2019 01:37 PM UTC

Now, I can see what is the problem.

In IOS we need the options VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" added to the SfDataForm.

After that, now I can see the SfDataForm in IOS.

Regards,

Arsenio

Thank You!


AK Ajith Kumar Senthil Kumar Syncfusion Team October 28, 2019 06:02 AM UTC

Hi Arsenio 
  
Thanks for the update.  
We are glad to know that your issue has been resolved. Please get in touch if you would require further assistance.  
  
Regards,  
Ajith.  
 



PA Patrick October 7, 2020 06:16 AM UTC

Dear Support

In my case this solution does not work.

Is there any Issue known?

Patrick


PA Patrick October 7, 2020 06:35 AM UTC

Aha, the parent stacklayout needs the options FillAndExpand, not the dataForm.

Solved in my case.


SS SaiGanesh Sakthivel Syncfusion Team October 8, 2020 06:51 AM UTC

Hi Patrick, 
 
Thank you for the update. 
 
We are glad to know that you have achieved your requirement. Please get in touch if you would require further assistance. 
 
Regards,  
SaiGanesh Sakthivel 



HF Henry Flantrmsky April 5, 2022 08:06 PM UTC

Hi, I have de same problem and none of the solutions posted here worked for my case. I have to put the HeightRequest manually.


The data form is inside the main Stacklayout in a Xamarin shell application




SS SaiGanesh Sakthivel Syncfusion Team April 6, 2022 01:51 PM UTC

Hi Henry,


#Regarding DataForm is not shown inside the Shell in the iOS platform

We suggest you set the HorizontalOptions and VerticalOptions property as FillAndExpand for the StackLayout and Dataform control. Please refer to the following code snippet for your reference.


Code snippet

<ContentPage.Content>

    <StackLayout HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">

        <dataForm:SfDataForm x:Name="dataForm" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" DataObject="{Binding ContactsInfo}"/>

    </StackLayout>

</ContentPage.Content>


Please refer to the tested sample in the following locations.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/DataFormGettingStarted2064527142


Please refer to the following UG documentation for your reference,

UG: https://help.syncfusion.com/xamarin/dataform/getting-started#loading-dataform-inside-stacklayout


Please let us know if you have any concerns.


Regards,
SaiGanesh Sakthivel


Loader.
Up arrow icon