The example on
http://yuilibrary.com/yui/docs/datatable/datatable-chkboxselect.html
has some problems if you select the header checkbox.
If you check and then uncheck the header checkbox the checkboxes in the rows are check. But if you click "Process Selection" no output appears in the "processed" frame.
The next problem:
If you uncheck a row checkbox an then click once again the checkbox:
the checkboxes appears unchecked but if you click "Process Selection" this row will print out.
And the you have to click again on the checkbox to set the marker.
That's very confusing.
Is there an attempt to resolve the bug?
{ key: 'select',
allowHTML: true, // to avoid HTML escaping
label: '<input type="checkbox" class="protocol-select-all" title="Toggle ALL records"/>',
formatter:
function(o){
if (o.data.select){
return '<input type="checkbox" checked />';
}
else{
return '<input type="checkbox" />';
}
}
,
emptyCellValue: '<input type="checkbox"/>'
}