Hello,
I seem to have an issue with inline editing when the grid is using server side filtering and paging. When I am on the second page of the grid and try to edit the value of a column that is filtered via the jqxComboBox widget, I get the following: Uncaught TypeError: Cannot read property ‘uid’ of undefined. There seems to be a problem in this part of the script in jqxgrid.js:
getrowboundindexbyid: function (g) {
var f = this.dataview.recordsbyid[“id” + g];
if (f) {
if (f.boundindex) {
return this.getboundindex(f)
}
}
var e = this.getboundrows();
for (var d = 0; d < e.length; d++) {
if (e[d].uid == g) {
return d
}
}
return -1
}
The array returned by this.getboundrows() is indexed by using the actual order by which grid rows appear in the grid. For example, if I am on the second page and page size is 20, the elements of the array 0-19 will be undefined and 20-39 will be the actual elements. This breaks the code in the if statement in the for loop (see above).