Добрый день!
мой пример
Good afternoon!
My example
webix.ui({
container:"cmb",
view: "combo",
width:300,
on:{
onTimedKeyPress:function(){?????????????????? }
}
suggest: {
container:"cmb1",
body:{
yCount:5,
data:countries,
}
}
});
Вопрос 1
когда набирают текст в combo, срабатывает событие onTimedKeyPress.
Мне нужно изменить набор данных countries в функции onTimedKeyPress. Как это сделать?Нужен ли refresh?
Question 1
When typing text in combo, the onTimedKeyPress event is triggered.
I need to change the set of countries in the onTimedKeyPress function. How to do this? Do I need refresh?
Вопрос 2
Я получаю данные с сервера и отправляю данные на него с помощью собственной javascript функции. Нужно, чтобы при наборе текста в combo, на сервер отправлялся уточняющий-фильтрующий запрос. Cервер отдает не более 50 записей!
Я выбрал оптимальный способ? - с помощью события onTimedKeyPress.
Или можно как-то по-другому?
Question 2
I get data from the server and send data to it using my own javascript function. It is necessary that when typing in combo, a refining-filtering request is sent to the server. The server gives no more than 50 entries!
I chose the best way? - using the onTimedKeyPress event.
Or it is possible somehow in another way?
Спасибо!
Thank you!