I am starting to use DHTMLX Touch for my project and love it so far, but have a need to use a combo box with autocomplete functionality. I noticed there is an AJAX driven combo box offered as a separate component. Can this be used with DHTML Touch for mobile devices? If not do you have any suggestions?
“combo” view filters options in list and shows suggestions for the typed text. What is the desired behaviour ?
dhtmlxCombo, desktop component, can be used on mobile devices. However, it doesn’t have scroll that works on Android. Moreover, there is not a ready implementation with Touch form.
I think the question (and it’s my question too) is, how do we dynamically load the data/options from a callback to the server?
Say the combo is for a search box: how do I get the relevant terms based on what is being typed? The user types ‘mi’ and I want to load in ‘Michigan’, ‘Mississippi’, ‘Missouri’.
dhx.extend($$(“text1”),dhx.KeyEvents);
$$(“text1”).attachEvent(“onTimedKeyPress”, function(){
$$(“popupList”).show();
var text = $$(“text1”).getValue();
//your code here
});[/code]
To load values that correspond mask you reload list manually (clearAll and load methods) or use “binding” as in:
// bind list with DataValue object
var maskValue = new dhx.DataValue();
$$('resList').define("dataFeed", "data.php");
$$('resList').bind(maskValue, function(inputData, listData){
listData.mask = inputData;
});
// change DataValue on onTimedKeyPress event
dhx.extend($$("text1"),dhx.KeyEvents);
$$("text1").attachEvent("onTimedKeyPress", function(){
$$("popupList").show();
maskValue.setValue($$("text1").getValue());
});
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan