Radzen DataGrid Inline Edit - jumps out of edit mode when bound to nuget class

When I bind my datagrid to a list of objects that is referenced from one of our nuget packages the edit mode jumps out of edit as soon as I leave the field I'm editing. But when I use a local object class (within the blazor project) it works just fine.

Have anyone experienced this before or know anything about it?

Hi @Stellan,

This could happen if something changes the value to which the Data property of your RadzenDataGrid is set. Make sure it isn't an expression e.g. <RadzenDataGrid Data="@someProperty.ToList()". This will be evaluated on every Blazor lifecycle tick and rebind the data grid.

I'm not doing anything like that :frowning:

Well we don't actually know what you are doing since you haven't provided any code. Can't help without knowing more.

Finally found the problem. The problem was that my binding model class was declared as a "record" and not a "class". Seems that the grid can't handle record objects when using inline editing.

Just tried our in-line demo with custom record with same properties as Order class and it worked normally:




That's strange. This is my simple object that I use (from a nuget package if that makes any difference?).

It just didn't work when it was declared as "record". As soon as I changed it to "class" it just started to work?

The row went into edit mode, but as soon as I edited a textfield and clicked outside or on the next field the entire row jumped out of edit mode.

I should also mention that this issue only had to do with textfields and not dropdowns. Any change in them seemed to be working as expected.