Hi,
I am working on Kendo grid Angular where we have to set the background color of rows based on one of the column values (DateTime column)
Compare the difference between the current DateTime and the column DateTime. If the difference is less than 30 minutes then set the background color of row. Using the below example as reference.
https://stackblitz.com/edit/angular-yh8zyr?file=app/app.component.ts
This works fine when grid is loaded for the first time. But the rowCallback function is also invoked when we sort a column in the grid and when we click on any row in the grid and when page index changed etc. The rowCallback is also fired when any event of other controls are invoked (ex: checkbox checked changed event, button click event etc) and the time difference is re calculated and changes the rows background color.
But i want to invoke this rowCallback and update the background of the rows only when grid data is refreshed on demand(we have a button to refresh the results in the grid & we have a checkbox which will refresh the results in the grid for every one minute). How can we achieve this.
Is there any other event/method where we can set the style for the rows in the grid ?
Regards,
Rajesh