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)?
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)?
Comment