Announcement

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

    Get edited rows?

    How to get the edited (unsaved) rows of a listgrid with .setAutoSaveEdits(false)?

    #2
    Hi edulid,

    although it does not answer your question, did you see the UnsavedRecords docs?

    Best regards,
    Blama

    Comment


      #3
      Yes, but, as you said, this does not answer my question.

      Comment


        #4
        Take a look at the Grid Editing overview - extensive discussion covering a few different options like getEditValues() or getEditedRecord().

        Comment


          #5
          Originally posted by Isomorphic View Post
          Take a look at the Grid Editing overview - extensive discussion covering a few different options like getEditValues() or getEditedRecord().
          I already took a look at these docs and methods, but how to get to know if a row was edited at all?

          The listGrid API has listGrid.getSelectedRecords(), but not listGrid.getEditedRecords() ?

          So, if I don't miss something, the only way to find this out is:
          Code:
          for (int i = 0; i <= usersLG.getRecords().length - 1; i++) {
          			if (!usersLG.getEditValues(i).isEmpty()) {
          				//The row was edited!!
          			}
          		}
          Is this correct and the only way?

          Comment


            #6
            Use rowHasChanges().

            Comment


              #7
              Also getAllEditRows() gets the list of all rows where there are pending edits.

              Comment


                #8
                Thanks! I was missing those APIs

                Comment

                Working...
                X