#master_checkbox no work when changing rows of per page

Hi Sir:
I use Pro V3.6
1.Look at the NO.1 picture(1.png):
By default,50 rows of per page is OK
2.Look at the NO.2 picture(2.png):
When changing the rows of per page(150 rows per page),and click the #master_checkbox,
But the 100 rows can be selected,and 50 rows can not be selected!
why?
Thanks!!!




And I change the dhtmlxgrid_filter.js:
dhtmlXGridObject.prototype._in_header_master_checkbox = function (a, b, c) {
a.innerHTML = c[0] + “” + c[1];
var d = this;
a.getElementsByTagName(“input”)[0].onclick = function (a) {
d._build_m_order();
var c = d._m_order ? d._m_order[b] : b;
var g = this.checked ? 1 : 0;
// d.forEachRowA(function (a) {
// var b = this.cells(a, c);
// if (b.isCheckbox()) b.setValue(g), b.cell.wasChanged = !0;
// this.callEvent(“onEditCell”, [1, a, c, g]);
// this.callEvent(“onCheckbox”, [a, c, g]);
// });
// (a || event).cancelBubble = !0;
var state = d.getStateOfView();
for (var k = state[1]; k < state[2]; k++) {
var z = d.cellById(d.getRowId(k), c);
if (z.isCheckbox()) {
z.setValue(g);
}
}
(a || event).cancelBubble = true;
};
};