Hi all,
I have create the following snippet to reproduce as much as possible my problem: http://webix.com/snippet/84223c60
In this snippet I created an editable datatable with a ‘select’ editor on the film title column. I have 2 data collection (but actually I work on database serverside data) where I get the film title by the editor ‘lookup’. In this scenario filtering by character ‘t’ does not work anymore. How can I make it to work correctly?
Thank you
Filtering works with the values of the dataset, i.e. with the1, 2, ...
intitle
column.
This dataset/options notation requires a custom filtering pattern. You can define it via thecompare
property within the filter config. For example:
Thank you listopad, but I’m working with a custom “serverFilter” (webix.ui.datafilter[“MYserverFilter”] = { … } copied and modified from webix standard serverFilter) on serverside data and I don’t think I can use “textFilter”.
It’s possible to write a custom attribute ‘pkey’ on the column datatable html element? (Doing so, I may get the pkey value from column html element by node.getAttribute(‘pkey’) in my custom serverfilter, I have seen that webix create a ‘column’ attribute for each html element for dataset columns)
Never mind. I found a solution. I have modified the “getValue” method of my filter to pass the join table for lookup to the serverside script