Need a special offer?Find out if your project fits.
+
API reference
  • API Reference for older versions
  • Table of contents

    datachanged

    [starting from version: 2.306]

    It is triggered after the user edits data. Editing is available through the flat table or the drill-through pop-up. This event should be used when editing is enabled (editing: true).

    Data passed to the handler

    Parameter/Type Description
    params
    Object
    Contains information about the event.
    params.data
    DataObject[]
    Fields that were updated.

    DataObject

    Property/Type Description
    id
    String | Number
    Row number (by default) or ID column.
    If you want to get the value of the ID column with an event, you should set column type id for this column (read more about data types in JSON and CSV). Such field will not be shown in Field List but its value will be sent within the event. This helps to identify which row was changed.
    field
    String
    The unique name of the field that was updated.
    value
    String
    New value.
    oldValue
    String
    Old value.

    Example

    flexmonster.on('datachanged', function (e) {
        alert("Data changed - field: "
                + e.data[0].field + ", id: "
                + e.data[0].id 
                + ", new value: "
                + e.data[0].value 
                + ", previous value: "
                + e.data[0].oldValue);
    });

    Open the example on JSFiddle.

    See also

    ReportObject