Great project, however limitation of data in normal casing exists. Any plans for mapping to camelCasing data result #46
Replies: 1 comment
-
Thank you very much for sharing your thoughts, I appreciate it. JSON (de-)serialization is actually beyond the scope of this component, and that is by design. It allows the grid to work with other means of transport like gRPC or, for example, reading a CSV file from disk. I found that if you follow the basic example (as described on the getting started page), Blazor will not deserialize the JSON correctly for some reason and the grid will not show any data. Changing the property naming policy to NULL will fix this, but it appears to me to be an issue with Blazor itself. To be honest I have not found out exactly why this is the case. If you have more knowledge on this then feel free to share your suggestions. |
Beta Was this translation helpful? Give feedback.
-
This project by far has been one of the best free Grids for Blazor and works really great. Kudos on that. We were planning on implementing this but found out that this only works if the returned data is in normal casing.
services.AddControllersWithViews() .AddJsonOptions(o => { o.JsonSerializerOptions.PropertyNamingPolicy = null; });
There would be a wider acceptance of this project if there was a way for this grid to work with camelCased data and it seems like camelCasing is the recommended JSON standard as per this article .
Any plans of moving in that direction? Was there a reason why you chose to map it to normal cased properties?
Beta Was this translation helpful? Give feedback.
All reactions