I set up the dhtmlxcombo in c# with a dropdownlist and it gets all info and filters. The selectedIndexchange event does not fire when I click on a option. Is there a certain way to setup so selectedindexchange fires?
The combo doesn’t supports native HTML events, but it has its own onChange event
combo.attachEvent(“onChange”,function(){
//any custom code here
alert(combo.getActualValue());
});
Thanks but got the answer to it the code that I took out is below, now I have to figure out the mouse click event capture with the _keycode.
dhtmlXCombo.prototype._onKeyF = function(e){
var that=this.parentNode.combo;
var ev=e||event;
if(ev.keyCode==“13” || ev.keyCode==“27” ){
that.closeAll();
commented out this line in dhtmlxcombo.js then the selectindexchanged worked. ->> //return false;
}
return true;
}
According to provided code - it seems that you are using older code, please try to use latest version ( can be taken from scbr.com/docs/products/dhtml … xCombo.zip )
It must generate correct onChange event for any type of selection.
Thanks for pointing me to the new code that solved all the problems I was having.