Hi,
https://snippet.webix.com/cc0b3529
In this snippet if I enter substring “70” in Released column which is present in corresponding column combo list. It provides no result.
I am trying achieve partial search for combo editor of datatable.
Please provide solution.
try to define the column as below
{ id:"year", editor:"combo", suggest: {
data: years,
filter: function(item, value) {
var type = this.getList().type;
return type.template(item, type).indexOf(value)>-1;
}
},
https://snippet.webix.com/1m4mu3ei
this way would be better
https://snippet.webix.com/a5n9sc62
{ id:"year", editor:"combo", suggest:{
filter: function(item, value) {
var type = this.getList().type;
return type.template(item, type).indexOf(value)>-1;
}}, collection:years, header:"Released" , width:100},
{ id:“year”, editor:“combo”, suggest:{
filter: function(item, value) {
var type = this.getList().type;
return type.template(item, type).toLowerCase().indexOf(value.toLowerCase())>-1;
}}, collection:years, header:“Released” , width:100},