SfDataForm renders editors and labels with too much space apart.

Hi,

I am using version 16.1.0.37 of the Xamarin Forms Controls.

I have been struggling to get the SfDataForm control to display editors in a linear layout all week.
Below is the code snippet I'm trying to display.

<ContentPage.Content>
 
 
        <ScrollView>
            <Grid Margin="3,5">
                
            <Grid.RowDefinitions>
                    <RowDefinition Height="*"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
 
 
                <dataForm:SfDataForm x:Name="dataForm"  Grid.Row="0" VerticalOptions="Start" HorizontalOptions="Start" Margin="0"
            LabelPosition="Top" ColumnCount="1" CommitMode="PropertyChanged" ValidationMode="PropertyChanged"/>
 
 
                <controls:RoundButtonView  Grid.Row="1" Margin="0,2" Color="#00D59F" BorderColor="#00D59F" BorderWidth="1" CornerRadius="24" 
                       HorizontalOptions="Center" VerticalOptions="Center" OnClick="SaveForm"  
                       HeightRequest="45" WidthRequest="250" ShapeType="Box">
                    <Label Text="Save" FontSize="20" TextColor="White" VerticalOptions="Center" HorizontalOptions="Center" VerticalTextAlignment="Center" HorizontalTextAlignment="Center"></Label>
                </controls:RoundButtonView>
                
 
            </Grid>
 
        </ScrollView>
 
    </ContentPage.Content>
The form renders the labels and the editors too far apart when the page loads.
The attachment contains screenshots of what the render looks like.
The spacing between the labels and the editors is just too much and makes the form completely unusable.
Note that this only happens when the LabelPosition is set to Top, when it is set to Left, the form renders the labels
and editors close enough as expected.
I just need the labels to be rendered on top of the editors.

Also, I have been having too many problems with the SfDataGrid. 
Databinding appears to be an issue with this datagrid control. 
When you bind from code, it does not render. If it does render, I typically have to figure out why.
When you bind from Xaml, it either does not render or throws too many exceptions that cannot be debugged.

<ContentView.BindingContext>
        <vm:IncomeBudgetsViewModel x:Name="ViewModel"></vm:IncomeBudgetsViewModel>
    </ContentView.BindingContext>
    <ContentView.Content>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
 
            </Grid.RowDefinitions>
 
            <ScrollView Grid.Row="0">
 
                <StackLayout  Orientation="Vertical" Spacing="4" Margin="0" Padding="0">
 
                   
 
                    <sfgrid:SfDataGrid  x:Name="dataGrid" ItemsSource="{Binding DataList}" AllowLoadMore="True"
           LoadMoreCommand="{Binding LoadMoreCommand}" AllowPullToRefresh="True" PullToRefreshCommand="{Binding RefreshCommand}"
            AllowEditing="False" CurrentCellBeginEdit="CurrentCellBeginEdit" CurrentCellEndEdit="CurrentCellEndEdit" SelectionChanged="OnGridSelected"
           AllowResizingColumn="True" AutoGenerateColumns="false" AllowSorting="True" AllowMultiSorting="True"
           AllowSwiping="True" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"
           SelectionMode="Single" ColumnSizer="Star" VerticalOverScrollMode="None" Margin="0,0,0,0" Padding="0,0,0,5">
 
                        <sfgrid:SfDataGrid.Columns>
                            
                            <sfgrid:GridPickerColumn BindingContext="{x:Reference ViewModel}"
                   MappingName="IncomeCategoryKey" ItemsSource="{Binding IncomeCategories}" DisplayMemberPath="Name" ValueMemberPath="Id"
                  HeaderFontAttribute="Bold" HeaderText="Category">
 
                            </sfgrid:GridPickerColumn>
                           
                            <sfgrid:GridNumericColumn MappingName="Target" HeaderText="Target" Format="N" TextWrapping="NoWrap" HeaderFontAttribute="Bold"></sfgrid:GridNumericColumn>
 
                        </sfgrid:SfDataGrid.Columns>
 
  
                    </sfgrid:SfDataGrid>
 
 
                </StackLayout>
            
            </ScrollView>
 
        </Grid>
  </ContentView.Content>

The code below shows where the ContentView containing the grid is passed data from a parent view to render.
[XamlCompilation(XamlCompilationOptions.Compile)]
   public partial class CVGridIncomeBudgets : ContentView
   {
       public CVGridIncomeBudgets()
       {
           InitializeComponent();
 
           //ViewModel = new IncomeBudgetsViewModel();
           //dataGrid.ItemsSource = ViewModel.DataList;
 
           //BindingContext = ViewModel;
       }
 
       //IncomeBudgetsViewModel ViewModel
       //{
       //    get; set;
 
       //}
       BudgetPlansMasterView CurrentBudgetPlan
       {
           getset;
 
       }
 
       public void LoadData(BudgetPlansMasterView plan)
       {
 
           UserDialogs.Instance.Alert($"total budgets found b4->{ViewModel.DataList.Count}""Totals""Ok");
 
 
           if (!ViewModel.IsDataLoaded)
           {
               CurrentBudgetPlan = plan;
               ViewModel.CurrentBudgetPlan = plan;
 
               ViewModel.LoadMoreCommand.Execute(null);
               // dataGrid.PullToRefreshCommand.Execute(null);
 
 
           }
           UserDialogs.Instance.Alert($"total budgets found after->{ViewModel.DataList.Count}""Totals""Ok");
 
 
       }

The datagrid simply does not render any data, but shows up with a blank datagrid and no rows at all.
What could be wrong? I'm presenting this demo on Monday and I need this to work.

Please respond asap.
Thanks,
Ozioma

Attachment: pepper_screenshots1_454edf90.zip

20 Replies

VR Vigneshkumar Ramasamy Syncfusion Team July 10, 2018 01:34 PM UTC

Hi Ozioma,  
  
Regarding query with SfDataForm.  
  
We have checked the reported scenario and we are able to reproduce the issue with data form item size while adding ScrollView with LabelPosition as Top and we have logged the issue report for the same. We will include the fix for this issue in our 2018 Vol2 SP1 release while is expected to release by end of July 2018 else if you need patch in advance where we can deliver on or before 24th July 2018 you can create incident in below link.  
  
 
Regarding query with SfDataGrid.  
 
We have checked your query. The issue SfDataGrid does not get renders does not get reproduced on our side. We have checked the sample with given settings and SfDataGrid renders on our side.  
  
Can you please confirm once whether you have followed the below things in your project.  
  
You have stated that you have exception in your project. From the given code we have noticed that you have not created an instance for the SfDataGrid.LoadMoreCommand and SfDataGrid. PullToRefreshCommand.  
  
Refer the below UG link for your reference.  
  
  
  
We have attached the sample in which we have tested an d you can download the same from below link.  
 
Regards 
Vigneshkumar R 



DW Dylan Wegner February 11, 2019 04:18 PM UTC

I am still having the issue where the spacing between the labels and editors are super large. The issue is only on iOS and it's when the label position is on the top. 

Can someone take a look? 

Thank you
Dylan


JN Jayaleshwari N Syncfusion Team February 12, 2019 12:51 PM UTC

Hi Dylan,  
  
Thanks for contacting Syncfusion support.  
  
We have checked your query regarding large space occurs between the editor and label in SfDataForm Xamarin Forms iOS. We have checked by setting LabelPosition as Top and including DataForm inside a Grid (DataForm>Grid>ScrollView). But unfortunately, we are not able to reproduce the issue from our side. 
 
We have created sample for the same. Kindly find the sample below.  
Sample: DataForm_Editor
 
 
Screenshot:  
  
   
Could you please check with the provided sample and revert us whether the issue is reproduced? Else, kindly modify the provided sample with replication procedure along with more details regarding your query, DataForm version used, Xamarin Forms platform used, device used. So that it will be helpful for us to analyze and provide you possible solution.  
 
Regards, 
Jayaleshwari N 



DW Dylan Wegner February 12, 2019 01:30 PM UTC

Hello, 

I updated your sample app to show what I am doing. Please take a look. 

Thank you, 
Dylan

Attachment: DataForm_EditorUpdatedWithMySenario_4684d76c.zip


SG Swathi Gopal Syncfusion Team February 13, 2019 12:30 PM UTC

Hi Dylan, 
 
We have validated the defect (large space occurs between the editor and label in SfDataForm Xamarin Forms iOS) you have initiated with us. Thank you for taking the time to report this issue with Label height does not measure properly when SfDataForm visibility is changed at run time in Xamarin Forms iOS and helping us improve our product. Mentioned issue doesn’t occur when loaded SfDataForm initially, only when dynamically SfDataForm visibility changed issue occurs. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our subsequent Volume 1 release, which is expected to be available by mid of March, 2019. If you wish to receive this fix in a specific prior release product version please contact Syncfusion Support (backwards compatibility subject to technological feasibility and our Support SLA) You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.  
  
 
Regards, 
Swathi G 



DW Dylan Wegner February 13, 2019 12:59 PM UTC

Hello, 

Thank you for the update. How would i go about loading the SFDataForm initially instead of dynamically, but still keep the way i am doing the visibility grid thing? 

Thank you, 
Dylan 


JN Jayaleshwari N Syncfusion Team February 14, 2019 12:28 PM UTC

Hi Dylan,  
  
Regarding Query:  loading the SFDataForm initially instead of dynamically, but still keep the way i am doing the visibility grid thing?   
  
As per the previous example provided by you, SfDataForm will be loaded initially in a content page and only the Visibility property will be set to false. Changing the DataForm’s visibility to true in button click is the scenario where the height of the label does not measure correctly in the view.And we have logged issue report for the same. Further, could you please provide more information regarding your requirement? So that we could analyze on it and provide you with possible solution.  
 
Regards, 
Jayaleshwari N 



DW Dylan Wegner February 14, 2019 01:29 PM UTC

Ok I think I read the initial response to the code I posted wrong. I look forward to seeing the resolution to this issue. 
Thank you
Dylan 


JN Jayaleshwari N Syncfusion Team February 15, 2019 06:25 AM UTC

Hi Dylan, 
 
Thanks for the update. We will let you know once the release is rolled out. Please let us know if you would require patch before the release. 
 
Regards, 
Jayaleshwari N. 



DW Dylan Wegner February 15, 2019 11:31 AM UTC

Hi, 

I would take the patch whenever it is done, please. 

Thank you, 
Dylan


JN Jayaleshwari N Syncfusion Team February 15, 2019 12:10 PM UTC

Hi Dylan, 
 
Thanks for the update. We will update you with patch on or before March 8, 2019. We appreciate your patience until then. 
 
Regards, 
Jayaleshwari N. 



DW Dylan Wegner February 27, 2019 09:00 PM UTC

Has any progress been made on this issue? 

Thank you, 
Dylan 


JN Jayaleshwari N Syncfusion Team February 28, 2019 12:28 PM UTC

Hi Dylan, 
 
The reported issue has been fixed and we are in the testing phase. We will test and update you the patch on March 1, 2019. 
 
Regard, 
Jayaleshwari N. 



SP Subburaj Pandian Veluchamy Syncfusion Team March 1, 2019 11:56 AM UTC

Hi Dylan, 
  
Thank you for your patience. 
  
We have fixed the “Label height doesn’t update properly when dataform visibility changed at run time”, please find the patch for this issue fix by the following. 
  
Set Up: 
  
Custom Assemblies: 
  
Nuget: 
  
Kindly find the below link to clear Nuget cache,
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache   
 
    
Installation Direction:       
{Syncfusion Installed location}\Essential Studio\16.4.0.52\Xamarin\lib\pcl\Syncfusion.SfDataForm.XForms.dll             
{Syncfusion Installed location}\Essential Studio\16.4.0.52\Xamarin\lib\android\Syncfusion.SfDataForm.XForms.iOS.dll                 
     
Disclaimer:     
Please note that we have created this patch for version 16.4.0.52 specially to resolve the issue reported in Forum 138593. We will include this issue fix in our upcoming 2019 Volume 1 release, which is expected to roll out by mid of March 2019. 
 
Regards,
Subburaj Pandian V  



DW Dylan Wegner March 6, 2019 04:44 PM UTC

Hello, 

When i try and download the attached items above I get an not authorized error. It says, "You are not authorized to download this patch."

Can you help? 

Thank you,
Dylan 


SP Subburaj Pandian Veluchamy Syncfusion Team March 7, 2019 10:04 AM UTC

Hi Dylan, 
  
Sorry for the inconvenience caused. 
  
We have created the patch with wrong customer id, kindly ignore the provided patch. We have created patch again for this issue fix “Label height doesn’t update properly when dataform visibility changed at run time”, please find the same by following. 
  
Set Up: 
  
Custom Assemblies: 
  
Nuget: 
  
Kindly find the below link to clear Nuget cache,
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache    
    
Installation Direction:       
{Syncfusion Installed location}\Essential Studio\16.4.0.52\Xamarin\lib\pcl\Syncfusion.SfDataForm.XForms.dll             
{Syncfusion Installed location}\Essential Studio\16.4.0.52\Xamarin\lib\android\Syncfusion.SfDataForm.XForms.iOS.dll                 
     
Disclaimer:     
Please note that we have created this patch for version 16.4.0.52 specially to resolve the issue reported in Forum 138593. We will include this issue fix in our upcoming Volume 1 release which is expected to roll out at the mid of March 2019. 
    
Please let us know, if you need further assistance.    
 
Regards,
Subburaj Pandian V 



DW Dylan Wegner March 11, 2019 10:50 AM UTC

Thank you. The dataform looks good now. 


DY Deivaselvan Y Syncfusion Team March 12, 2019 05:21 AM UTC

Hi Dylan,

Thanks for the update.

We are happy to hear that the given patch resolves the reported issue. Please feel free to contact us in case of any further assistance. We'll be glad to assist you.

Regards,
Deivaselvan 



MP Martin Publica March 14, 2019 06:46 PM UTC

Hi

Please confirm when the fix will be rolled out? I am currently using 16.4.0.54 and this issue is occurring.

Thanks

Martin


AS Arun siva Syncfusion Team March 15, 2019 02:30 PM UTC

Hi Martin, 
 
Thank you for contacting Syncfusion support. 
 
We are glad to announce that our Essential Studio 2019 Volume 1 Beta Release version 17.1.0.32 is rolled out with this issue fix of “Label height doesn’t update properly when dataform visibility changed at run time” and is available for download under the following link.  
   
  
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.  
 
Regards, 
Arun Siva R 


Loader.
Up arrow icon