I’m trying to bind a datastore to a combobox. It works in all main browsers but not in IE9. It seems to be working on IE8 though.
The expected behavior is to display the actual name of the item as text/label and use the id as the combobox value.
[code]
var territoriesDataStore = new dhtmlXDataStore( { url:‘territory-example.php’, datatype:‘json’ } );
//binding datastore items to combo value and text
territoriesDataStore.data.scheme({
$init:function(obj){
obj.value = obj.id;
obj.text = obj.nom;
}
});
var territoryCombo = form_info.getCombo("TerritoryCombo");
territoryCombo.sync( territoriesDataStore );[/code]
Attached is an example of the issue. Can you confirm it is a bug?
Thanks
combotest.zip (309 KB)