Announcement

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

    ListGrid iteration

    Hi everybody,

    I have a problem with iterating through ListGrid data.
    My list grid is bound to the DataSource and I also have some summary fields.

    I am trying to iterate through all the records in order to calculate something but I cannot make it.
    I was trying with .getRecordList(), .getRecords(), getTotalRows()/getRecord() and none of these works.
    I keep getting empty lists or arrays of records and if I try with getRecord it returns null. My listgrid has showAllRecords = true and dataFetchMode = basic.

    Can you tell me what would be the correct way to iterate through all the records in the listgrid in order to fetch values of some of their fields (both when I am editing the grid and when I only display data in it)?

    #2
    Most likely, you are calling fetchData() then immediately trying to access record data, but data has not arrived from the server. Wait for the DataArrived event to fire, or use the callback argument of fetchData().

    Comment


      #3
      Thanks for the reply.

      What if I want to go through records while editing the grid, that is, if I am inserting new records?

      Comment

      Working...
      X