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

SfDataGrid is not working on iOS, but works fine on Android (we are using Xamarin.Forms)

Hello we are using SfDataGrid with XAML and it works perfect on Android, but on iOS we have some problems.
When ItemsSource is empty collection (Count=0)  we can see the SfDataGrid header. If the collection is not empty (Count > 0),  the view loads but does not show. 
When we remove the converters of the display binding, the view loads but page is blank.
This is our code:
 <syncfusion:SfDataGrid x:Name="dataGrid" ColumnSizer="Star" AutoGenerateColumns="False"  ItemsSource="{Binding TimeRegistrations}" >
    
    <syncfusion:SfDataGrid.GroupColumnDescriptions>
      <syncfusion:GroupColumnDescription ColumnName="ProjectName"/>
     </syncfusion:SfDataGrid.GroupColumnDescriptions>

    <syncfusion:SfDataGrid.SortColumnDescriptions>
      <syncfusion:SortColumnDescription ColumnName="TaskName"
                                        SortDirection="Ascending" />
    </syncfusion:SfDataGrid.SortColumnDescriptions>

    
    <syncfusion:SfDataGrid.Columns x:TypeArguments="syncfusion:Columns">
      
      <syncfusion:GridTextColumn HeaderText="Task" MappingName="TaskName" HeaderCellTextSize="14" CellTextSize="12" TextAlignment="Start"/>
      
      <syncfusion:GridTextColumn HeaderText="Invoicing" MappingName="InvoicingStatus" DisplayBinding="{Binding InvoicingStatus, 
                                   Converter={StaticResource TaskInvoicingTypeLanguageConverter}}" HeaderCellTextSize="14" CellTextSize="12"/>
      
      <syncfusion:GridTextColumn HeaderText="Hours" MappingName="HourDuration" DisplayBinding="{Binding HourDuration, 
                                   Converter={StaticResource HourDurationDecimalToTimeSpanConverter}}" HeaderCellTextSize="14" CellTextSize="12" Width="70"/>
    </syncfusion:SfDataGrid.Columns>
  </syncfusion:SfDataGrid>


4 Replies

IU iuli June 13, 2016 03:42 PM UTC

We have added  SfDataGridRenderer.Init(); in AppDelegate -> FinishedLaunching.


SL Sathya Lakshmanan Syncfusion Team June 14, 2016 01:45 PM UTC

Hi iuli,

Thanks for using the Syncfusion Products.

We have analyzed your query and we were able to reproduce the issue. However, we have already noticed and fixed this issue internally and the fix will be available in upcoming volume 2 main release which is scheduled to be release by the end of this week.

Regards,
Sathya
 



AC Ahmet Cihat Ünaldi August 18, 2016 10:35 AM UTC

Hi,

Did the problem solved? For the volume 2 main release (version 14.2.0.26) I am experiencing the same problem.

Thanks,
Ahmet


DS Divakar Subramaniam Syncfusion Team August 18, 2016 06:00 PM UTC

Hi Ahmet, 
 
We have checked the reported issue against our 14.2.0.26 and 14.2.0.28 version of assemblies and the issue has been resolved in both versions. For your reference, we have attached the sample in which we tested with 14.2.0.26 version of assemblies referred locally and you can download the same from the below link. 
 
 
Please check whether you have referred the same version of assemblies in both the PCL and renderer projects. 
 
In case, if issue still persist at your end then please do revert with the modified sample reproducing the issue. 
 
Regards, 
Divakar. 


Loader.
Up arrow icon