Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
I need a function to expand webcombo dropdown
posted

I try to do a custom auto complete of web combo with client side function selectWhere, i added a handler to event EditKeyUp(or EditKeyDown) but in neither case i can't obtain the latest value which is typed(i obtain previous typed value)  with the typed value i do a selectWhere in case of input length and i wand to expand dropdown but i can't find a function or a property  to use for this.

 

function cmbEmbarkationPoint_Edit(webComboId)

{

debugger;

var cmbEmbarkationPoint = igcmbo_getComboById(webComboId);

var value = cmbEmbarkationPoint.displayValue;

var dd = cmbEmbarkationPoint.getDropDown();

cmbEmbarkationPoint.HideDropDowns = false;

cmbEmbarkationPoint.grid.show = true;

cmbEmbarkationPoint.Dropped = true;

cmbEmbarkationPoint.setDropDown(true);

if (value != null) {

if (value.length == 3) {

cmbEmbarkationPoint.selectWhere("CODE LIKE '%"+value +"%'");

}

if (value.length > 3) {cmbEmbarkationPoint.selectWhere("CITY LIKE '%"+value +"%'");

}

}

}