After the updating to >= v.4.21.0 i noticed that my current solution to add background classes to my cells stopped working. I noticed in the updated the code, that adding custom attributes seems to be adding a ";" (semi-colon). This seems to interupt with my current code.
I have found a workaround for my given case, where i put whitespace both at the start and at the end of my class which i wish to add as an custom attribute.
I also noticed that everything gets added twice (probably because of pre-render), so is it possible to get "args.FirstRender" on "DataGridCellRenderEventArgs" as well? (it is currently present in "GroupRowRenderEventArgs").
If everything works as intended, ill just have to adapt to only using style instead i think.
Hi @enchev , I'm currently using Radzen Studio 2.87.2 with your components version 4.21.4.
I'm having the same or at least am similar issue here (looks like it is not fixed yet or a regression!):
In the columns definition of the grid, I have assigned the CSS class "fw-bold" to one column which makes this column appear in bold.
Then I use CellRender event to assign a special custom class to certain rows, where a given criteria matches:
args.Attributes.Add("class", "table-bg-red");
The result is, that in rows, where the "table-bg-red" class is applied, the "fw-bold" class is ignored. The cause is that the class="" arribute in the HTML code got corrupted: