![]() This will work most of the time for you, especially if your values are simple types (string, number, boolean) or immutable objects. This is of interest if you want to compare values in a different way.īy default the grid will compare values by using triple equals, eg "oldValue = newValue". This section explains how the grid compares values. AG Grid minimises the DOM updates by only updating the DOM where changes are detected. What AG Grid does is similar to the change detection algorithms in frameworks.ĭoing this many checks in JavaScript is not a problem. You might ask, is checking every cell against its value a performance problem? The answer is no. This means the grid will automatically keep aggregation results (the values in the grouped row) up to date as the data beneath it changes. This allows all cells using valueGetters to be kept up to date where a change to one cell (that was edited) may impact the value of another cell (that references the first cell).Īggregation Change Detection: When a value for any cell changes, the grid will recalculate all aggregations that are impacted by the changed value. If the values differ, the cell is refreshed. ![]() after an edit), the grid goes through every cell in the grid and compares the current value to the previous value. Value Change Detection: When a value for any cell changes (e.g. When a value in the grid changes, either via the UI or via the grid API, the grid will check all cells to see which ones need updating and update only those cells, so minimal changes are made to the DOM.Ĭhange detection can be broken down into the following two categories:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |