Posted 4 October 2017, 10:44 pm EST
We are using WjFlexGrid in a project. So, far it works well. We have functionality where we store the state of the grid to do a parent/child relationship concept. Users selects a row, clicks on a button to bring up child information about that parent in another grid. When a user returns to the parent, we would like to select that row for them so they can continue to do something else with that selected row.
I have tried doing a forEach to navigate in the rows shown to select which one, but I cannot get a handle on that row.
this.grid.rows.forEach(row => {
console.log(row);
}
});
I have also tried something as simple as :
for (var j = 0; j< this.grid.rows.length - 1; j++) {
but the length is 0 and can’t get at the rows that way either.
When I do a console.log(this.grid.rows) I see all 10 rows there, but I cannot seem to work with the rowCollection as easy as I thought. Is this possible? Any suggestions would be appreciated.
Thank you,
Jeff