I am using the DataGrid with back-end loading of data. The Radzen client is a standalone web assembly with a API-based backend. When passing a filter on a date, the back-end crashes with a rather cryptic message about CultureInfo not being recognized. I added specific types to the dynamic linq in the back-end to solve this. This did make the error disappear but I got another one.
When I examine what the filter looks like, it’s even quite unexpected:
x => ((x.Startdate ?? null) == DateTime.SpecifyKind(DateTime.Parse("2026-01-01", CultureInfo.InvariantCulture, DateTimeStyles.RoundtripKind), DateTimeKind.Unspecified))
It looks as if the statement to parse the date is not executed on the client, but sent to the server, and that the server (for some reason) is unable to correctly interpret it.
With this statement, the back-end code reports: Operator '==' incompatible with operand types 'Object' and 'DateTime''.
This behavior was introduced somewhere in the past 3-4 weeks (Radzen 10.0.? – 10.0.6) (before that, it all worked fine)
Note that on the Radzen demo site, no issue is seen, and the filter statement looks like nothing as what I am seeing (rather a classical compare statement (propertyy) eq (value) - what I expected).
Can anyone point me to what can cause this behaviour?
The property filtered on is a DateTime or a DateTime? (neither works).
Thanks!