Check documentation for the latest version of dhtmlxSuite onCollectValues DHTMLX Docs

onCollectValues

fires after the values have been collected to fill the select filter

void onCollectValues(number index);
indexnumberthe index of a column

Available only in PRO Edition

Example

grid.attachEvent("onCollectValues", function(index){
    //your code here
    return true; //mandatory for the default processing
});

Details

The event can be used to provide a custom list of options for select filter.

grid.attachEvent("onCollectValues", function(index){
    if (index == 2)
        return ["one","two","three"]; //options for select filter
    else 
        return true; //default processing
});
Back to top