Our blazing fast Grid component built with pure JavaScript


Post by karthik »

Hi,
How to restrict checkboxes for some rows based on conditions ?


Post by mats »

See the snippet in the docs: https://bryntum.com/docs/scheduler/api/Grid/column/CheckColumn

new Grid({
    appendTo : document.body,

columns : [
    {
         type: 'check',
         field: 'allow',
         // In the column renderer, we get access to the record and CheckBox widget
         renderer({ record, widgets }) {
             // Hide checkboxes in certain rows
             widgets[0].hidden = record.readOnly;
         }
    }
]
});

Post Reply