Skip to content

collectValues

returns an array of unique values of the specified column

function collectValues(
// the column id
id: id,
// the configuration object (details below)
mode?: WebixDatatableCollectValuesConfig
): array

array an array of unique values

If you want the filter options to be collected from the column values and not from the column options/collection, you can pass the mode parameter with visible:true:

datagrid.collectValues("columnId", { visible:true });