Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Get changed records on listgrid

    Correct me if I am wrong, as far as I know that I can get the updated records from transformResponse or by observing databound operations (addData, updateData, ...).
    Is it possible to get the updated records from dataChanged event in listgrid?

    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width: 500,
        height: 224,
        alternateRecordStyles: true,
        dataSource: worldDS,
        // display a subset of fields from the datasource
        fields: [{ name: "countryCode" }, { name: "countryName" }, { name: "capital" }, { name: "continent" }],
        sortField: 1, // sort by countryName
        dataPageSize: 50,
        autoFetchData: true,
        selectionType: "single",
        dataChanged: function (operationType) {
          this.Super('dataChanged', arguments)
          // get changed record
        },
      });

    #2
    dataChanged doesn't give you enough information for granular (single record) updates. Depending on the source of the update, there are many other places you could use as a notification, from cellChanged to transformResponse to DataSource.dataChanged().

    Comment


      #3
      Alright. Thanks for the response.

      Comment

      Working...
      X