Announcement

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

    ListGrid.getDataAsRecordList() ouput

    Hi,

    what is
    Code:
    ListGrid.getDataAsRecordList() supposed to deliver?
    Using this in the GridEnterNewRowSample i.e.
    Code:
    ...
    countryGrid.setListEndEditAction(RowEndEditAction.NEXT);
    countryGrid.fetchData();
    System.out.println("Records after DS construction");
    RecordList list = countryGrid.getDataAsRecordList();
    for(int x = 0; x < list.getLength(); x++){
    	Record record = list.get(x);
    	System.out.println(x+": "+Arrays.toString(record.getAttributes()));
    }
    System.out.println("After record printout");
    canvas.addChild(countryGrid);
    ...
    returns this:
    Code:
    Records after DS construction
    0: []
    1: []
    2: []
    ...
    999:[]
    After record printout
    where I expected to see some actual grid data...

    Regards,
    fatzopilot

    FF 5.01 devMode, SGWT latest nightly 08/11/2011, GTW 2.3

    #2
    FetchData() is asynchronous - wait for it's callback to fire.

    Comment


      #3
      Of course, thanks for the pointer...!

      Comment

      Working...
      X