3.2.0

BUG in paging model ? Undefined column at right side

Hi all, I am not sure what I am doing wrong, but...

when I use the Paging patch (witch works great other way) I allways get one more column at the end of the GRID (one more then the defined count). I have to get rid of it by seting it as hidden column. So what do I have wrong there ?

Here is the sample of the code:

<script>
var grid_obj_columns = [
"dezén", "šíøka", "kg/bal", "kg/m", "váha", "zbytek", "id", "mat", 
];
var grid_obj_data = [
["BTRE", "350", "57.00", "0.00", "44.00", "true", "8", "1001196", ],
["BTRE", "350", "57.00", "0.00", "25.00", "false", "7", "1001196", ],
["BTRE", "200", "33.00", "0.00", "10.00", "true", "4", "1001195", ],
["BTRE", "350", "57.00", "0.00", "15.60", "false", "1", "1001196", ],
];
try {
  var grid_obj = new Active.Controls.Grid;
  grid_obj.num_rows = 4;
  grid_obj.setModel('row', new Active.Rows.Page);
  grid_obj.setProperty('row/count', 4);
  grid_obj.setProperty('column/count', 8);
  grid_obj.setProperty('data/text', function(i, j){return grid_obj_data[i][j]});
  grid_obj.setProperty('column/texts', grid_obj_columns);
  grid_obj.setProperty('row/pageSize', 20);
  document.write(grid_obj);
}
catch (error){
  document.write(error.description);
}
</script>


Any clue ?

Thanx for advice..
ASJ
July 31,

This topic is archived.

See also:


Back to support forum