Hello EveryBody
I need your Help Please !
While using a combo; the data of my dhtmlXCombo displayed : Ids instead of texts
thanks in advance
Hello EveryBody
I need your Help Please !
While using a combo; the data of my dhtmlXCombo displayed : Ids instead of texts
thanks in advance
Most probably a value of combo doesnβt match any of options.
If issue still occurs, please share a sample or a demo link.
Hi Stanislav
For more information; the problem was appeared after updating from version DHTMLX 3.x to DHTMLX 5.x.
This is A small piece of code :
Requeteur.comboThemeRequeteur = new dhtmlXCombo("requeteTheme","comboThemeRequeteur","95%");
Requeteur.comboThemeRequeteur.enableFilteringMode(true,"ChargeComboFormScenario?type=4",false,false);
// Requeteur.comboThemeRequeteur.enableAutocomplete(true);
// Requeteur.comboThemeRequeteur.allowFreeText(false);
Requeteur.comboThemeRequeteur.attachEvent("onChange", function(){
if(!Requeteur.comboThemeRequeteur.getSelectedValue()){
if(Requeteur.currentRequeteur==null){
Requeteur.comboThemeRequeteur.addOption("-1"," ");
var selectedIndexFromType = Requeteur.comboThemeRequeteur.getIndexByValue("-1");
Requeteur.comboThemeRequeteur.selectOption(selectedIndexFromType,true,true);
}
else{
Requeteur.comboThemeRequeteur.addOption(Requeteur.currentRequeteur.id,Outils.htmlToString(Requeteur.currentRequeteur.intitule));
Requeteur.comboThemeRequeteur.setComboValue(Requeteur.currentRequeteur.id);
Requeteur.comboThemeRequeteur.setComboText(Outils.htmlToString(Requeteur.currentRequeteur.intitule));
}
}
else{
if(Requeteur.comboThemeRequeteur.getComboText().indexOf("~")>0){
Requeteur.comboThemeRequeteur.setComboText(Requeteur.comboThemeRequeteur.getComboText().substring(0,Requeteur.comboThemeRequeteur.getComboText().indexOf("~")-1));
}
Requeteur.formRequeteurComplet.theme=true;
}
Requeteur.editionEnCours.form=true;
Requeteur.formRequeteurComplet.theme=true;
Requeteur.gestionAffichageMenu();
});
Thanks in advance
Could you please, provide with a complete demo, that can be checked on our side, so it can be tested.
Here you can find a tutorial about creating a complete demo:
docs.dhtmlx.com/tutorials__auxil β¦ pport.html