Categories | Question details Back To List | ||
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="<div data='"+sns.xml+"' class='dhx_cal_ltext' style='height:"+height+";' id='"+scheduler.uid()+"'></div>"; 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 Answer posted by Alex (support) on Jan 20, 2010 05:01 Hello, you can try to use the following: function onChangeFunc(){ |