Class member symbols

Hello.

In a Blazor WebAssembly app, if class field names for an SfGrid DataSource contain Cyrillic characters (for example, Serbian Cyrillic alphabet), CRUD, filtering, and sorting operations cause errors. The Blazor Server app does not experience these errors.

Example:

    public class Order

    {

        public int OrderID { get; set; }

        public string Клијент { get; set; }

        public DateTime OrderDate { get; set; }

        public double Freight { get; set; }

    }




2 Replies

MS Monisha Saravanan Syncfusion Team December 2, 2024 04:33 PM UTC

Hi Aiden,


We could able to replicate the reported issue at our end and we are currently validating this at our end and we will provide further updates within 4th December 2024. Until then we appreciate your patience.


Regards,

Monisha




MS Monisha Saravanan Syncfusion Team December 4, 2024 12:00 PM UTC


Hi Aiden,


Thanks for the patience.


We have reviewed your shared code snippet and were able to replicate the reported issue in a standalone sample of Blazor WASM. Upon further validation, we observed that in Blazor WebAssembly, expression parsing and evaluation may encounter issues with non-ASCII property names in certain contexts, particularly when the property name is passed as a string. Since WebAssembly does not fully support all reflection-based features of the typical .NET runtime, this behavior may not work as expected in Blazor WebAssembly. Therefore, we recommend avoiding non-ASCII characters as field names in Blazor WebAssembly.


Sample: https://blazorplayground.syncfusion.com/embed/BNVpWrjBoitrZZKV?appbar=true&editor=true&result=true&errorlist=true&theme=bootstrap5


Kindly get back to us if you have further queries.


Regards,

Monisha



Loader.
Up arrow icon