DataTable - filtering and grouped columns

Hi,

Just trying to work out how to have filtering on a column that’s grouped. There doesn’t appear to be any documentation on grouped columns, and there’s only 1 working example I’ve seen at:
http://docs.webix.com/samples/60_pro/01_datatable/06_api/12_group_columns.html

So taking that page as an example, how would I then apply filtering to those columns?
The first column is defined as:
{ id:“2008_1”, header:[
{ content:“columnGroup”, closed:true, batch:“2008”,
groupText:“2008”, colspan:12, width: 120},
“January”
]},

but to apply filtering, I need to state content:“selectFilter”.

So is there any way of combining columnGroup and selectFilter to get both?

Thanks!

Hello,

In this situation you can add an extra header line to the datatable that will house a selectFilter.

{ id:"2008_1", header:[
      { content:"columnGroup", closed:true, batch:"2008", //1st line 
	  groupText:"2008", colspan:12, width: 120},
      "January", //2nd line with a month name
      {content:"selectFilter"} //3rd line with select filter
]},

Grouped columns are mentioned in documentation http://docs.webix.com/datatable__columns_configuration.html#groupingcolumns.

An extensive guide to datatable headers (configuring each line, multiline headers, colspans and rowspans) will as well help you: http://docs.webix.com/datatable__headers_footers.html

Ok - that makes sense. So basically I can have a collection of content elements in the header…

THANKS!