Learn more from guides & API docs
Catch up with the latest on the blog
Try our many live demos
View webinars
Find answers or ask questions
Docs & demos for Angular
Docs & demos for React
Docs & demos for Vue
Our blazing fast Grid component built with pure JavaScript
Post by boyitech » Wed Mar 29, 2023 4:03 am
Greetings!
I find a problem when I use 'Grid.feature.RowReorder' . I add a renderer to change the cell's color when the value is 99 and it works. However, when I try to reorder this row to other place, the row which be replaced will also be colored.
Post by tasnim » Wed Mar 29, 2023 7:43 am
Hi,
You need to add an else statement for that
renderer : ({ cellElement, value }) => { if (value === 30) { cellElement.style.color = 'white'; cellElement.style.background = 'green'; } else { cellElement.style.color = null; cellElement.style.background = null; } return value; }
This will work