dojodojox.grid.datagrid

Dojo indirectselection handle check


How can I handle on check event on dojo indirect selection:

var table = new dojox.grid.EnhancedGrid({
    store: catalogLayout,
    structure: layout,
    id: "poolGrid",
    styles: "text-align: center",
    plugins: {indirectSelection: true}
}, document.createElement("div"));

This is my enhanced grid rendered on html:

<div id="contentNode" style="height:90%;width:100%"></div>

Solution

  • See usage section of documentation. In your case

    dojo.connect(table.selection, 'onSelected'|'onDeselected', function(rowIndex){...})
    // when Select All checkbox is changed
    dojo.connect(table.rowSelectCell, 'toggleAllSelection', function(newValue){...})