How to customize the height of a DataFormItem ?

Hello,

I am using the DataForm in read-only mode.
Unfortunately the space between two items is quite big. (see Screenshot)
How can I reduce the height? I tried to create custom editors but that did not had any effect on the height.

Thank you for your support
Daniel

Attachment: SyncfusionDataForm.png_ccc76e6b.zip

3 Replies

JN Jayaleshwari N Syncfusion Team August 16, 2018 12:01 PM UTC

Hi Daniel,  
  
Thank you for contacting Syncfusion support.  
  
Reduce height in between the data items:  
   
As per the implementation in DataForm, dataform items get positioned based on the Row Span or ColumnCount set to the data object item. You can increase row height and column width by defining the RowSpan and ColumnSpan properties in the DisplayOptions attribute. Default value of these two properties is 1.  
  
You can refer our online user guide documentation for the same.  
  
  
As of now you can customize the label and editor width proportionally by using LabelWidth and EditorWidth properties of SfDataForm. Also you can customize label and editor width by override the DataFormLayoutManager and assign to the SfDataForm.LayoutManager property.   
   
Please refer the below link for more details.   
   
We don’t have direct support to reduce the label and editor height in SfDataForm, we have considered this one as feature request and it will be available in any of our upcoming releases.    
  
Space between two datatform items is big  
  
Base on the provided screenshot, we have checked the reported query with space between two data form items is large and we are unable to reproduce the issue. Could you please share us the below details?  

·               Used SfDataForm and Xamarin version.  
·               Whether SfDataForm is added inside any layout if possible share the code example?  
·               Issue reproducing platform and tested device specifications.  
  
We have prepared a sample using DataForm for the same. Kindly find the sample below,  
  
Sample:  DataFormXamarin  

Could you please check with the provided sample whether the mentioned issue is reproduced? If not, kindly modify the sample attached and revert us back with more details regarding your query. Such that it will be helpful for us to analyze and provide you solution with priority.  
 
Regards, 
Jayaleshwari N. 



JO Josh September 10, 2020 02:31 AM UTC

I ran into this as well. 

Any update on when this will be available? 


SS SaiGanesh Sakthivel Syncfusion Team September 10, 2020 01:53 PM UTC

Hi Josh,  
  
Thank you for contacting syncfusion support.  
  
#Regarding How to customize the height of a DataFormItem  
We would like to inform you that we have documented your requirement ‘How to customize the height of a DataFormItem’ in our user guidance document. Please refer to the following UG Documentation for your reference.   
   
  
We hope this helps. Please let us know if you need any further assistance.   
   
Regards,   
SaiGanesh Sakthivel

Loader.
Up arrow icon