I use code from your example (04_ondynxls_usage.html) to load combo inside gantt lightbox and just can’t get combo box to display items after typing first letter in combo input field. Here is my code:
gantt.form_blocks["autocomplete"] = {
render: function (sns) {
return "<div class='combo_info'>start type: the adventures...</div><div id='combo_zone' style='width:230px; height:30px;'></div>";
},
set_value: function (node, value, task) {
var myCombo;
myCombo = new dhtmlXCombo("combo_zone", "combo", 230);
myCombo.enableFilteringMode(true, "custom");
myCombo.attachEvent("onDynXLS", function (text, ind) {
if (text.replace(/^\s{1,}/, "").replace(/\s{1,}$/, "").length == 0) {
myCombo.closeAll();
myCombo.clearAll();
} else {
myCombo.clearAll();
myCombo.load('{options:[' +
'{value: "77942", text: "Airport Copenhagen"},' +
'{value: "77943", text: "Airport Dublin"},' +
'{value: "88944", text: "Airport Frankfurt"}' +
']}');
myCombo.openSelect();
}
});
},
get_value: function (node, task) {
},
focus: function (node) {
}
};
Please help.