Announcement

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

    How do I retrieve Records added to a ListGrid

    I have a ListGrid. I add the starting rows with

    sampleGrid.setData (records);

    I add a new row to it by calling

    sampleGrid.startEditingNew ();

    When I call sampleGrid.getRecords (); I get an array holding the records added w/ setData , and none of the records added with startEditingNew. If I call

    sampleGrid.getDataAsRecordList ().getLength ();

    I get the number of records added with setData.

    TIA,

    Greg

    #2
    Correct, see the ListGrid Editing Overview for why: unsaved records are not part of the dataset, and are stored as editValues only.

    Comment


      #3
      Originally posted by Isomorphic
      Correct, see the ListGrid Editing Overview for why: unsaved records are not part of the dataset, and are stored as editValues only.
      And how do I get at those edit values?

      Comment


        #4
        getEditValues or one of the getEditValue... methods.

        Comment

        Working...
        X