client side filtering for combo

Hello. When Im put options in a combo by URL, filtering suggests start to send requests for used URL, but Im don't need it, and I`m wanna use standard client filter.
Example:
{
view: "combo", label: "rules", name: "rules", suggest: "./assets/options/rules.json",
filter: function(item, input){
return input.indexOf(input) !== -1;
},
},

Comments

  • edited August 6

    Hey @Dr10s, you can try something like this: https://snippet.webix.com/5bhlcuqp.

    It seems that in order for the server filtering to work suggest needs a dataFeed property specified, since you are providing suggest: url it sets both the dataFeed and url properties for the suggest from what I've gathered. If you specify just the url the filtering is done on the client side.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion