only select checkbox in dhtmlxGrid page

Hello,

To get checheked box in dhtmlxGrid , i use this : var list = grid.getCheckedRows(0);

But this get also rows on an other pages when i use paging.

So how i could select only rows on the page?

Next code can be used

var pos = mygrid.getStateOfView();
var start = pos[1];
var end = pos[2];

var checked=[];
for (var i=start; i<end; i++)
if (this.cells2(i,INDEX).getValue()==1) checked.push(mygrid.getRowId(i));