Hi,
steps to reproduce:
- open https://bryntum.com/products/grid/examples/basic/
- remove all code (leave import).
- paste:
const detailsGridConfig = {
type : 'grid',
autoHeight : true,
selectionMode : {
checkbox : true,
showCheckAll : true,
},
columns : [
{
text : 'Product',
field : 'name',
}
]
};
const g = new Grid({
appendTo : 'container',
features : {
rowExpander : {
widget : detailsGridConfig,
dataField : 'details',
},
},
selectionMode : {
checkbox: true,
showCheckAll: true,
},
columns : [
{
text : 'Name',
field : 'name',
flex : 2,
},
],
data : [
{ id : 1, name : 'Don A Taylor', age : 30, city : 'Moscow', food : 'Salad', color : 'Black', details : [
{ id : 122, name : 'Rice', icon : 'b-fa b-fa-bowl-rice', quantity : 2, price : 3.49 },
{ id : 124, name : 'Lemons', icon : 'b-fa b-fa-lemon', quantity : 1, price : 0.69 },
{ id : 121, name : 'Peppers', icon : 'b-fa b-fa-pepper-hot', quantity : 4, price : 2.99 },
{ id : 123, name : 'Cookies', icon : 'b-fa b-fa-cookie-bite', quantity : 3, price : 1.99 }
] },
]
});
g.selectionMode = {
checkbox: false,
showCheckAll: false,
}
g.features.rowExpander.widget.selectionMode = {
checkbox: false,
showCheckAll: false,
}
- observe the main row checkbox is NOT rendered (correct behaviour) - g.selectionMode properties were set to false in runtime
- observe the rowExpander checkbox IS rendered (incorrect behaviour) - g.features.rowExpander.widget.selectionMode properties were set to false in runtime, but had not effect.
Thanks