onRowSelectionChanged

Scope: grid The event is triggered when the selection of grid lines change. When a line is selected or deselected.

//Enable a button if exactly 1 line is selected
let selectedRows = app.getFieldValue("myGrid.selectedRows");
app.setEnable("myButton", selectedRows.length === 1);

Last updated