I have a scenario where a user can check boxes in a large data grid then click a button to start a process. Since there is a lot of data the user filters to find the info they want. The problem occurs when they filter, check boxes, filter again and check more boxes, they expect all of the boxes to be grabbed when we call:
var selected = dataGrid.getCheckedRows(0);
unfortunately only the visible boxes are grabbed.
Is there a way of grabbing all boxes checked that aren’t visible?
It can be done only with code modification. In the dhtmlxgrid.js file change following code:
getCheckedRows:function(col_ind){
var d = new Array();
this.forEachRowA(function(id){
if (this.cells(id, col_ind).getValue() != 0)
d.push(id);
},true)
return d.join(",");
},
with
getCheckedRows:function(col_ind){
var d = new Array();
this.forEachRow(function(id){
if (this.cells(id, col_ind).getValue() != 0)
d.push(id);
},true)
return d.join(",");
},