We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

DataForm Height Not Displaying Unless Manually Declaring HeightRequest

Hello,

I've implemented an SfDataForm within a StackLayout the following credentials:

<dataForm:SfDataForm
      HeightRequest="120" ColumnCount="3"
      HorizontalOptions="FillAndExpand"
      x:Name="includeItemNumber"
      ContainerType="None"
      DataObject="{Binding ItemSelection}"
      ValidationMode="PropertyChanged"
      LayoutOptions="TextInputLayout"/>
</StackLayout>

Is there a way to have the SfDataForm auto fill based on the view itself? or am I required to give a predefined height?



1 Reply

SP Subburaj Pandian Veluchamy Syncfusion Team August 8, 2019 07:28 AM UTC

Hi Matthew, 
  
Thank you for contacting Syncfusion support. 
  
Based on the shared information, we have analyzed the reported issue “DataForm doesn’t display within StackLayout” and we suspect that you have not specified VerticalOptions for DataForm. If you want to load DataForm inside StackLayout, you need to Horizontaloptions and VerticalOptions of DataForm and set Parent (StackLayout) of DataForm to LayoutOptions.FillAndExpand.  
 
Kindly refer our UG documentation to know more about loading DataForm inside StackLayout, 
  
  
We hope this helps. Kindly revert us if you have any concern. 
  
Regards,
Subburaj Pandian V

 


Loader.
Live Chat Icon For mobile
Up arrow icon