DHTMLX Docs & Samples Explorer

onCollectValues Event

This event occurs after values were collected to fill select filter.

          grid.attachEvent("onCollectValues", function(index){
                    //any custom logic here
                    return true; //mandatory for default processing
          });

This event passes the following parameter:

  • index - index of columns.

The event can be used to provide 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
          });