Hello,
I am using Igx data grid. I want to know is there any way to check if the grid is untouched(pristine) / touched (dirty).
Urgent issue. Please reply asap
Hello Shobhana,
In order to better assist you I would appreciate some clarification on what you mean by the grid being clean vs dirty. For example, does filtering or sorting the grid count as making the grid dirty?
when i edit the grid than its dirty (touched) and when i do not touch the grid than it is pristine.
The onCellEdit event has oldvalue and new value properties which you can use to determine when a grid is no longer clean since the value will have changed and so fired the event.
Sample code:
public handleCellEdit(event: IGridEditEventArgs) { console.log("old value " + event.oldValue + " new value " + event.newValue); }
Documentation links:
onCellEdit properties