Datatable Select Filter - only "used" values

Hi,

I am filling up a datatable with a select-column (feeded with a collection) and in the header a select filter.
How can I show in the select filter only the values which are used in the datatable and not all the possible select values (of the collection)?

Thanks,
Martin

Hi,

the best practice is to separate the properties from the dataset:

{ id:"title", header:["Film title", {content:"selectFilter", options:[{...},{...}] }

Code of component will not try to collect actual values from dataset if full list of options was provided ( the collection, in your case )

So, you can define list of options for the filter directly, or use a bit more complicated logic, where this list is autocreated ( requires latest webix.js )

http://webix.com/snippet/9e5176e8