Hi,
I have run the sample project using the UWP project and then the Windows Phone as the start up project. Both projects run successfully but the datagrid is not displayed at all.
I tried simplifying the LoadData method to remove the dependency on the OData service but still the datagrid is not displayed:
async void LoadData()
{
//gridSource = new ObservableCollection<Order>();
//var client = new ODataClient("http://services.odata.org/Northwind/Northwind.svc/");
//var units = await client.FindEntriesAsync("Orders");
//var itemCollection = units.ToList();
//var itemCollection1 = new List<IDictionary<string, object>();
//itemCollection.Add("test", new Order { OrderID = 1, OrderDate = DateTime.Today });
Device.BeginInvokeOnMainThread(() =>
{
//foreach (var item in itemCollection)
//{
// var order = new Order();
// foreach (var prop in item)
// {
// order.GetType().GetRuntimeProperty(prop.Key).SetValue(order, prop.Value);
// }
// gridSource.Add(order);
//}
Order order = new Order();
order.OrderID = 1;
order.OrderDate = DateTime.Today;
gridSource.Add(order);
});
}
Your comment "Initially, we were able to reproduce the issue which occurred because of slow internet connection" is also a concern as I would expect the data to still be displayed even if the OData service takes a while.
thanks,
Paul