Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Hi,
we notice that readonly struct are not cloned correctly when using the table edit functionality. because the properties of readonly struct are not writable, they always have the default value. this result in missing data for the editing row
it would be great to set the value ( ReflectionExtension.SetValue ) for value types ( GetType().IsValueType ) instead of clone ( CloneUtils.Clone ) them ( which currently cause the underlying properties to be always be the default value because they are readonly for value types )
one workaround we found is to mark these properties ( on the grid datasource type ) as nullable ( because the default value of nullable types are always null, the SetValue function is called with the original, which copy the value type correctly ).
another workaround is to implement OnActionBegin for BeginEdit and create your own clone function.
both require massive changes to the code base