Can you tell me how to set all rows that contain a checkbox column to checked?
I am using the following column where the "checked" attribute is set to true, but no rows are being checked:
colModel = [
{
title: "FAS Activity", dataType: "string", dataIndx: "FASActivity", editable: false, align: "left", minWidth: '20%',
render: function (ui) {
return "<a href='#' onClick=javascript:OpenTranWindow(" + "'" + ui.cellData + "'" + ");>" + ui.cellData + "</a>";
}
},
{ title: "Region", dataType: "String", dataIndx: "RegionDesc", editable: false, minWidth: '40%', },
{
title: "Include ?", dataIndx: "Activity", type: 'checkbox', editable: false,
cbId: 'chk', hidden: false, checked: true, useLabel: false, minWidth: '20%'
},
{
dataIndx: 'chk',
dataType: 'bool',
cb: { header: true },
hidden: true,
editable: function (ui) {
//to make checkboxes editable selectively.
return !(ui.rowData.Activity.length > 10);
}
}
];