DHTMLX Docs & Samples Explorer

setUpdated(rowId,state,mode)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxdataprocessor.js

marks row as updated/normal. check mandatory fields,initiate autoupdate (if turned on)

  • rowId - id of row to set update-status for
  • state - true for “updated”, false for “not updated”
  • mode - update mode name - “inserted”,”updated”,”deleted” (“updated” by default)

You can use this method to undelete a grid row.

  1. For example, you decided to delete some row, but changed your mind before the request reach the server. To undelete this row, you should call the method setUpdated() with the false state. It will allow you to 'save' the row and remove the 'deleted' marking.

    dp.setUpdated(rowId,false);
  2. Another situation is when you decide to delete some row but a server error occured or the row failed the validation. In this case, you should call 2 methods: set_invalid() to remove the 'error' marking and setUpdated() to remove the 'deleted' marking .

    dp.set_invalid(rowId, false);
    dp.setUpdated(rowId,false);