In Cell Editing Formatting

I implemented your in cell editing example and am trying to get the highlighting red triangle to appear. It seems to only work the second time I go into a cell and back out from it.

This code is a modified version of your example. However my data row uses a Guid for a database primary key. Am I perhaps missing a call to StateHasChanged() ? There is none in your data grid in-cell editing example.

string IsEdited(RadzenDataGridColumn<PackListLine> column, PackListLine packListLine)
{
    // In a real scenario, you might use IRevertibleChangeTracking to check the current column
    //  against a list of the object's edited fields.
    return editedFields.Where(c => c.Key == packListLine.guid && c.Value == column.Property).Any() ?
        "table-cell-edited" :
        string.Empty;
}

Thanks! We’ve updated our demos:

Removing the one line from my code:
editedFields.Add(new(ordersToUpdate.First().OrderID, columnEditing));

didn’t hurt but didn’t help either. I have been through this code several times the last few days, because one copy of works on a single click to get into the cell editor. The other page which came from the first page always takes two clicks to start editing.

Other than your demos is there a recommended source of information or Book on best practices and examples for Radzen Blazor programming? Microsoft covers there own components, and AI makes up things that usually don’t work.

You have access for free to the full source code of our components beside our demos and API reference.

Depends on what AI you are using.

I went back and looked at not just your recent code changes but the entire in-cell editing example. I fixed my 2nd web page not going into edit mode right away by adding your OnAfterRenderAsync code which I had missed form my first web page. I also found another line of code that had not been flagged in your latest Github diff that fixed the “edited” coloration. However the line that was deleted from OnCellClick() was added to Update(). That all together fixed the in-cell editing issues.

Thank you. Terrific components and programmers! I will also try to use the API references going forward.