I am trying to load a data table with default multi select filters being applied to its columns. Here is the snippet of something similar http://webix.com/snippet/3a0ffa7e . In this case, what would be the best way to get “12 Angry Men” to appear in the column filter drop down list?
If you have a license ( as you are using the multi-select seems you are using pro version ), grab Webix 2.1.14 from the customer area, it contains the fix for multiselect filters which allows to use the next code
webix.$$("foobar").getFilter("title").setValue("12 Angry Men");
webix.$$("foobar").filterByAll();
First line sets state of filter ( including the visible text ), second triggers filtering.
Thanks Makism. Just a small doubt though. I haven’t grabbed Webix 2.1.4 files yet on my machine yet. But when I tried implementing your suggestion through the webix snippet tool, I came across a script error on the function getFilter(). I presume that is probably because the snippet simulator runs on slightly older version of Webix (where this fix is not available yet)
Yep, it uses older version.
In next weeks we will publish Webix 2.2 and snippet tool will work correctly as well.