Hi All,
I am adding new rows to the grid using this code:
var row = {}; var res = data.res; $("#curr_wallet").jqxGrid('beginupdate'); $.each(res, function (key, val) { var newf = val; row['id'] = newf[0]; row['fund'] = newf[1]; $("#curr_wallet").jqxGrid('addrow', null, row); }); $("#curr_wallet").jqxGrid('endupdate');
The problem is that it adds identical rows and each subsequent new row overwrites rows already added to the grid. In other words, if I add 4 rows to the grid, all 4 last rows are identical and equal to the last row in the array.
What am I missing here?
thanks