checkbox
Hi there,
i may be doing somethig really stupid but the checkboxes on my grid are just not showing up. i wonder if there is a property to be set to make them visible. I tried copying the code from the example that shows the checkbox but even that is not show the checkbox in my project. Ive looked thru a lot in the forum but nothing is helping. Any leads will be greatly appriciated.
i may be doing somethig really stupid but the checkboxes on my grid are just not showing up. i wonder if there is a property to be set to make them visible. I tried copying the code from the example that shows the checkbox but even that is not show the checkbox in my project. Ive looked thru a lot in the forum but nothing is helping. Any leads will be greatly appriciated.
var grid = new AW.UI.Grid;
grid.setId("myGrid");
grid.setCellData(function(col, row){return "cell " + col + "." + row});
grid.setColumnCount(5);
grid.setRowCount(20);
grid.setSelectionMode("multi-row-marker"); // set selection mode to multiple rows with checkboxes
//grid.setCellTemplate(new AW.Templates.Checkbox, 0);
//var chk = new AW.Templates.Checkbox;
//grid.setCellTemplate(chk, 0);
grid.refresh();
var label = new AW.UI.Label;
label.setId("myLabel");
label.refresh();
grid.onSelectedRowsChanged = function(rowIndicesArray){
label.setControlText("rows: [" + rowIndicesArray + "]");
}
IS
June 29,