Hi Jeff,
Thank you for contacting Syncfusion support.
Based on the shared code, we could see that you have directly bound the value to the control’s input element. To set the value and display the text in the control, make sure that you have bound both the value and text fields and then you need to use the control’s value property. So, we suggest you to set the value for ComboBox using value property. Kindly refer to the following code snippet.
document.getElementById("btn1").addEventListener("click", function () {
var item = [{ Id: "game3" }];
var instance = document.getElementById("country").ej2_instances[0]; //Accessing Control’s instance
for (var i in item) {
instance.value = item[i].Id; //setting using value property
}
}); |
Kindly refer to the following API documentation for Value and Text property
If the issue persists , Kindly provide additional information on the issue with sufficient code to replicate the issue in our end. It will help us provide solution at the earliest.
Regards,
Prince