SfDataGrid not editable on iOS

I have Xamarin forms solution with UWP and iOS projects. The SfDataGid I create edits properly on Windows, but when I run it on an iPad I can't edit the cells. Here is the XAML:

                <xForms:SfDataGrid x:Name="FormationDataGrid"
                                   Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2"
                                   AllowEditing="True" EditTapAction="OnTap" EditorSelectionBehavior="SelectAll"
                                   ShowRowHeader="True" ColumnSizer="Star" RowHeaderWidth="25"
                                   AutoGenerateColumns="True"
                                   AutoGeneratingColumn="DataGrid_AutoGeneratingColumn"
                                   ItemsSource="{Binding OneDFormationViewModel.LayerCollection, Mode=TwoWay}">
                    <xForms:SfDataGrid.RowHeaderTemplate>
                        <DataTemplate>
                            <Label Text="{Binding Index}"  HorizontalTextAlignment = "Center" VerticalTextAlignment = "Center" />
                        </DataTemplate>
                    </xForms:SfDataGrid.RowHeaderTemplate>
                </xForms:SfDataGrid>


I have tried tapping, double tapping, and pressing on iOS and the cells won't go into edit mode. I have no trouble editing Entry controls I have in the app. What I am doing wrong?
I am using v15.4.0.20.

7 Replies

SK Shivagurunathan Kamalakannan Syncfusion Team February 20, 2018 01:03 PM UTC

Hi Stephen, 
 
We have checked your query. The issue that the cell does not get into editing mode in iOS does not reproduce on our side. It would be helpful to us if you could provide us any of the following details, So that we could solve the issue as fast as possible. 
 
  • Can you please share us the xaml page.
  • Can you please tell us the ViewModel settings.
  • Can you please modify the given sample to replicate the issue.
 
 
Note: Have you followed the given instructions in the UG. 
 
 
Can you please provide us the device details in which you have tested. 
We have tested the regarding issue in the following devices. 
  • Device     - iPad version - 10.3.2
  • Emulator - iPad Air 2 iOS 11.0
  •                 - iPad Pro(12.9-inch)(2nd generation)iOS 11.0
 
We have attached the sample in which we tested the issue. You can download the same from below link. 
 
Regards, 
Shivagurunathan. K 



ST Stephen February 20, 2018 08:43 PM UTC

I have downloaded and tested the example and editing works properly on my iPad. I have noticed a difference in our projects. You are using a PCL and I am using a .NET Standard 2.0 class library. Could this be the source of the problem?


ST Stephen February 20, 2018 09:52 PM UTC

I have managed to get editing to work properly in my SfDataGrid by placing the control as the only item on the page. Originally it was imbedded within three nested Grid controls. I see now that one of my six Entry controls was also disabled for editing. Although it all looks the way I intended, there must be something wrong with my Grid arrangement.


ST Stephen February 21, 2018 03:14 AM UTC

To wrap this up, I found a problem with the height of a Grid row that contained the Grid that contained the SfDataGrid. The height was not large enough to display all the controls within. Despite that, it did display all the controls within on both Windows and iOS, so I did not notice. In addition all the controls worked properly on Windows. I think if I had made this mistake using WPF it would have been immediately evident.


SK Shivagurunathan Kamalakannan Syncfusion Team February 21, 2018 01:04 PM UTC

Hi Stephen, 
 
Thanks for the update. Can you please confirm that the issue has been resolved or not. 
Please let us know for further assistance. 
 
Regards, 
Shivagurunathan. K 



ST Stephen February 21, 2018 04:14 PM UTC

The issue has been resolved.


SS Sivaraman Sivagurunathan Syncfusion Team February 22, 2018 10:28 AM UTC

Hi Stephen, 
Thanks for the update. Please let us know in case any assists. 
Regards, 
Sivaraman 


Loader.
Up arrow icon