Currently I cannot suggest you any suitable approach that will be working as expected in all scenarios when visualizing dynamic type of data.
Let me know if you have any additional questions.
Regards,
Didi Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Well, it's kind of weird and maybe you can let me know the trick.
what i found out is your data binding treated Idictionary differently
public class DictionaryObject : Idictionnary<xxx> {
public object id => this["id"];
}
this will not work for binding id even though i created a property.
but
public class test {
public DictionaryObject Data {get;set;}
public object id => this.Data["id"];
}
here databinding works.
Didi
Telerik team
commented on 30 Nov 2022, 12:06 PM
Hello, I understand that in some cases it seems the Grid supports dynamic objects, still, features like editing, sorting, filtering won't work in most of the scenarios.
ExpandoObject, dynamic objects are not fully tested with all DataGrid features. That's why I have logged a feature request on your behalf for providing a support for this.
You can check whether the DataGrid will populate the data in the exact scenario you have.