DhtmlxCombo auto suggest inside the dhtmlscheduler

Hi

Regarding integrating dhtmlxCombo inside the dhtmlscheduler, how to get the selected value outside:

Eg:

scheduler.form_blocks[“combo”]={
    render:function(sns){
        var height=(sns.height||“23”)+“px”;
        var html="

";
        
        return html;
    },
    set_value:function(node,value,ev){
        if (!node.combo){
        
                  node.combo = new dhtmlXCombo(node.id,“dummy”,“553px”);
                
                node.combo.enableFilteringMode(true);
                
                node.combo.attachEvent(“onChange”,onChangeFunc);      // this onchange event I added!
                
                node.combo.loadXML(node.getAttribute(“data”),function(){
                    node.combo.setComboValue(value||"");
                });
                
                
                return;
        }
        node.combo.setComboValue(value||"");
    },
    
    get_value:function(node,ev){
        return node.combo.getActualValue();
    },
                


    focus:function(node){
        node.combo.DOMelem_input.focus();
    }
}


If I want that selected value inside the onchange function, how to get it…

i. e

    
function onChangeFunc(){
    // here I want the selected value.
    return true;
}

Can anyone help me please.

Kind regards,
Sandesh Kumar


Hello,


you can try to use the following:


function onChangeFunc(){
var value = this.getActualValue();
return true;
}