Hi, we need a combo-suggest, with items loaded and filtered server side (.NET Core API REST).
Also we would change keyPressTimeout (on suggest) and set the combo value to first server retrieved item.
If possible, since this combo read items from a table with thousands of records, we would load only few items (like datafetch in datatable) at bootstrap and paginate other loads.
I found a lot of samples, and them all work individually, but I cannot put them together.
This basic way, all items are loaded at startup, server side filter works but generate (and stop) a lot of request due to low keyPressTimeout.
webix.ui({
id: "country", container: "combo", view: "combo",
suggest: "/Tables/GetCountriesCombo",
label: "Countries"
});
If we use “options”, server side filter stop working
webix.ui({
id: "country", container: "combo", view: "combo",
options: {
keyPressTimeout: 500,
body: {
url: "/Tables/GetCountriesCombo"
}
},
label: "Countries"
});
Then we tried some other combinations, but:
- first item selection never work;
- when work keyPressTimeout doesn’t work load at startup and server filtering;
This never work
ready: function () { this.select(this.data.getFirstId()); }
How can we generate the correct control ?