Tutorial: Data binding

Data binding

Understand binding as a reference

Handsontable binds to your data source (list of arrays or list of objects) by reference. Therefore, all the data entered in the grid will alter the original data source. In complex applications, you may want to change the data source from outside Handsontable. A change being made will not be presented on the screen unless you refresh the grid on the screen using the render method.

Working with copy of data

In case you want to keep a separate working copy of data for Handsontable, it is suggested to clone the data source before loading it into Handsontable. This can be done with JSON.parse(JSON.stringify(data)) or another deep-cloning function.

Help us improve this page