2016-07-28 7 views

Antwort

1

Sie könnten auf das Ereignis dojox.grid.DataGrid::onCellFocus hören. Die Ereignisargumente sind das fokussierte cell -Objekt selbst und das entsprechende rowIndex.

function onCellFocus(cell, rowIndex) { 

    // first clear selection 
    grid.selection.clear(); 

    // select the focused row 
    grid.selection.setSelected(rowIndex, true); 

    // invoke manually the render method 
    grid.render(); 
} 

Ich habe eine Arbeits Geige für Sie erstellt, die gefunden werden kann.