Updating grid data

24-Dec-2016 17:37

Hello Chris, Depending on your requirements, you have two options.The first one is to simply reassign the data property of the Rad Grid data Source.For that, you should use an update transaction as explained below.Updating data using row Data() and row Data Value() do not update the sorting, filtering or grouping.Use this method if you want to load the grid with a brand new set of data.The method The delta Row Data Mode is designed to allow ag-Grid work with immutable stores such as Redux.

You can test it with this piece of code: If you want changes in the data object to be observable, you can use the Win JS. The approach I offer to you is a work around and Rad Grid is not aware of data editing taking place at all. List, as the Rad Grid data Source will handle the editing logic by itself.You can also use this technique in a non-Redux or immutable store based application (which is the case in the examples on this page).As long as you understand what is happening, if it fits your applications needs, then use it.In an immutable store, a new list of row Data is created if any row within it is added, removed or updated.If using React and Redux, consider setting delta Row Data Mode=true and bind your Redux managed data to the row Data property.

You can test it with this piece of code: If you want changes in the data object to be observable, you can use the Win JS. The approach I offer to you is a work around and Rad Grid is not aware of data editing taking place at all. List, as the Rad Grid data Source will handle the editing logic by itself.

You can also use this technique in a non-Redux or immutable store based application (which is the case in the examples on this page).

As long as you understand what is happening, if it fits your applications needs, then use it.

In an immutable store, a new list of row Data is created if any row within it is added, removed or updated.

If using React and Redux, consider setting delta Row Data Mode=true and bind your Redux managed data to the row Data property.

Automatic two-way data binding allows your custom control to provide the editable and edited values, to and from the data store.