6 Answers, 1 is accepted
I figured it out.
To achieve text coloring once a cell is edited you can apply a single CSS rule:
Once a grid cell is eddited it automatically receives class .k-dirty-cell.
Please review the demo I have prepared for you:
Hope this helps and if there is anything we could assist further, please contact us back.
Sorry again for the multiple posts. Upon further examination it looks like the dirty class is being added after the edit, but after the edit function ends, it removes the class.
On edit - it adds k-edit-cell
After edit - it becomes k-edit-cell.k-dirty-cell
After the edit blur function ends, it removes all classes.
On the demo I have provided you everything works as described. Once the edit of a cell finishes the .k-dirty-cell class is not removed.
Is there a chance you have set "autoSync: true" in your dataSource? This automatically saves any changed data items by calling the sync method.
If possible please provide your configuration so I can examine and advise.