Announcement

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

    Listgrid record edited or new

    Hello,
    I am saving the listgrid records and have autoSaveEdits:false
    I retrieve the unsaved records using getEditValues()
    how do I find out if this row is new or updated so I send an add or update?
    Regards,
    Fuad


    #2
    If you simply call saveAllEdits() the ListGrid will issue as a series of "update" and "add" requests automatically, as well as handle updating of the data in the grid, and clearing of edit values. There's no need to do all that by hand.

    But if for some reason you needed to, all the new records are at the end, so they are the ones with row numbers greater than grid.getData().getLength().

    Comment


      #3
      Thanks a lot.
      grid.getData().getLength(). provided the needed information.
      Regards,
      Fuad

      Comment

      Working...
      X