Skip to content

onColumnGroupCollapse

fires when grouped columns are either collapsed or expanded

function onColumnGroupCollapse(
// the ID of the aggregating column (the column that unites the batch)
column_id: string,
// the ID of the batch to which the collapsed/expanded columns belong
batch_id: string,
// signals that the columns were collapsed (false) or expanded (true)
is_opened: boolean
): void
const batchStates = {
batch1:false,
batch2:false
};
datagrid1.attachEvent("onColumnGroupCollapse",function(colId, btchId, open){
batchStates[btchId] = open;
});

Articles

API