Hi Devesh,
Regarding "i won't be able to use dynamic objects in iOS, since Mono on the iPhone does not support"
Yes. This is not possible due to the mentioned limitations in iOS platform in framework itself.
Regarding "do i need to create custom series class for each series type to support dynamic object "
Yes. Currently this is the best possible approach to use ExpandoObject as a model for the data points for SfChart. Please get back to us if you have any issues or need assistance on this.
Regards,
Saravana Pandian M.
This solution of using a dictionary instead of an expandoobject worked for me under Xamarin forms for android and ios
https://www.beejblog.com/2017/06/syncfusion-xamarin-forms-sfdatagrid-binding-to-listdictionary.html
the 2 tricks are
create the columns manually mapping as
MappingName = "Vals[Source]"
then wrap your dictionary in an object
public class DictRow
{
public Dictionary<string, object> Vals { get; set; }
public DictRow(Dictionary<string, object> dict) { Vals = dict; }
}
I hope this helps someone
This solution of using a dictionary instead of an expandoobject worked for me under Xamarin forms for android and ios
https://www.beejblog.com/2017/06/syncfusion-xamarin-forms-sfdatagrid-binding-to-listdictionary.html
the 2 tricks are
create the columns manually mapping as
MappingName = "Vals[Source]"
then wrap your dictionary in an object
public class DictRow
{
public Dictionary<string, object> Vals { get; set; }
public DictRow(Dictionary<string, object> dict) { Vals = dict; }
}
I hope this helps someone
Thanks Andrey for you solution. There could be other alternatives also. I have used another one without creating a dictionary object but it's similar to this one.
But using alternatives, we won't be able to get dynamic behavior.
Anyways, thanks again :)