Chart series and C# interface types

It took me a while to figure out what was going on, but the RadzenLineSeries (I suspect it applies to other series types as well) doesn't work as expected when TItem is a hierarchical interface type.

For example, if you have:

public interface IBase {
  DateTime Timestamp {get;set;}

public interface IDerived : IBase {
  long Value {get;set;}

IEnumerable<IDerived> someSeries = ...

then you'll get an error when trying to render a line series such as:

<RadzenLineSeries Title="Something" Data="someSeries" ValueProperty="Value" CategoryProperty="Timestamp" />

You'll get an error saying it can't find the Timestamp property.

It sounds like the same kind of thing mentioned here: Get Interface Properties through reflection.

Hi @rosenqui,

Indeed it is probably the thing mentioned in the linked Stackoverflow thread. We will investigate next week and see if we can support this scenario.