Login Register

Get change event from dojox.grid.editors.bool

Hi

I have a grid with a view as follows:

var DayColumns =
{ cells: [[
{ name: "Lead", width: "40px", editor: dojox.grid.editors.bool },
{ name: "First Name", width: "100px" },
{ name: "Last Name", width: "100px" }
]] };
var DayGridLayout = [ DayColumns ];

I need to know when the user has changed the value of the checkbox in the first column of each row. How do I connect an event to this "dojox.grid.editors.bool" checkbox for each row?

Thanks
G

I haven't tried this yet,

I haven't tried this yet, but you probably have a couple of options:

1. Use the grid's onSet:myChangeFunctionName parameter in the grid constructor.

2. dojo.connect to:

dojo.connect(dijit.byId('grid').model,'datumChange',myDatumChange);

function myDatumChange(value,rowIndex,columnIndex) {
...do something with this info...
}