Hi !
I try to use SfDatagrid for a Cross Platform application. It's work very well on Android but I have an issue when the application is launched on an Ipad.
I encountering the following error message: "System.InvalidOperationException: No method 'Count' exists on type 'System.Linq.Queryable'."
Below, some informations concerning the used code:
PCL: MainPage.xaml
<syncfusion:SfDataGrid x:Name="dataGrid" ColumnSizer="LastColumnFill" ItemsSource="{Binding Data}" AutoGenerateColumns="False" AllowSorting="True" VerticalOptions="FillAndExpand">
<syncfusion:SfDataGrid.Columns x:TypeArguments="syncfusion:Columns">
<syncfusion:GridTextColumn HeaderText="Nom"
MappingName="nom" />
<syncfusion:GridTextColumn HeaderText="Prénom"
MappingName="prenom" />
<syncfusion:GridTextColumn HeaderText="Âge"
MappingName="age" />
<syncfusion:GridTextColumn HeaderText="Poste"
MappingName="poste" />
</syncfusion:SfDataGrid.Columns>
<syncfusion:SfDataGrid.SortColumnDescriptions>
<syncfusion:SortColumnDescription ColumnName="nom" />
</syncfusion:SfDataGrid.SortColumnDescriptions>
</syncfusion:SfDataGrid>
IOS: AppDelegate.cs
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
new SfChartRenderer();
SfDataGridRenderer.Init();
LoadApplication(new App());
return base.FinishedLaunching(app, options);
}
}
Can you tell me how fix this issue ?
Waiting for your reply.
Maxime.