editable: true,
alwaysEditing: true,
type: dojox.grid.cells.Bool,
values: [ "1", "0" ]
IFWS and other components are correct, using Dojo 1.5.
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/DataGrid-checkbox-unable-to-check-tp826853p1600941.html
I also tried dojox.grid.cells.Ceckbox with alwaysEditing set to true.
But only one checkbox will appear, the other rows do not have one unless I
double click to edit.
Strange behaviours, don't you think?!
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/DataGrid-checkbox-unable-to-check-tp826853p1601148.html
tridem-dojo wrote:
>
> I'm getting closer to the "problem". When using dojox.grid.cells.Bool you
> must use true or false not 0 or 1. Then it will work fine.
> But even then I can't find an event that fires onChange / applyEdit - any
> ideas?
>
Using methods like apply, applyEdit, onChange or even setValue never seem to
fire when changing the checkbox. Only when "leaving the row" the apply
callback was fired.
The only method to react on the "always and direct editing" is the onSet
connection directely to the store, f.e.:
dojo.connect(myStore, 'onSet', updateGrid);
function updateGrid(item, attribute, oldValue, newValue) {
console.log("Item: [" + store.getLabel(item) + "] was changed.
Attribute: [" + attribute + "] old value: [" + oldValue + "] new value: [" +
newValue + "]");
if (oldValue == newValue) {
return;
}
}
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/DataGrid-checkbox-unable-to-check-tp826853p1601406.html