We are upgrading Extjs from 4.1.1 to 4.2.2 and the below line of code is no longer working:
If I do a console.log() it shows undefined for theData. If I compare a console.log of the getNodes() and compare between the two versions the I see the following for each grid row:
4.1.1 -
4.2.2 -
It looks like there is extra wrapping on 4.2.2 which is making getRecords() not work.
Anybody have any idea why or how else to read all the grid rows into an array?
Thanks,
Code:
var theData = customerGrid.view.getRecords(customerGrid.view.getNodes());If I do a console.log() it shows undefined for theData. If I compare a console.log of the getNodes() and compare between the two versions the I see the following for each grid row:
4.1.1 -
tr.x-grid-row.x-grid-row-alt
4.2.2 -
tr#gridview-1020-record-ext-record-69.x-grid-row.x-grid-data-row
It looks like there is extra wrapping on 4.2.2 which is making getRecords() not work.
Anybody have any idea why or how else to read all the grid rows into an array?
Thanks,
Aucun commentaire:
Enregistrer un commentaire