Skip to content

onCollectValues

fires after a datagrid has collected options

function onCollectValues(
// the id of the column
id: string,
// the object that contains options
data: object
): void
datagrid.attachEvent("onCollectValues", function(id, data){
if (data.values[0].value == "")
data.values[0].value = "Select something";
});

also check the next samples:

Assuming you need to filter data via a dedicated popup. DataGrid collects the necessary values and populates the popup with them. When all values are collected the onCollectValues event is fired.