|
<script>
$(document).ready(function () {
var pid = $("#PredstavnikID").val();
var c_pid = document.getElementById('cboxPartner').ej2_instances[0];
c_pid.value = pid;
c_pid.dataBind(); // Call databind method to update the value in the control
}
</script> |
Hi Bernard,
Thank you for your update.
After setting the value property in the EJ2 Combo box control, you call the dataBind method to update the changes in the controls. Kindly refer to the following code snippet.
<script>$(document).ready(function () {var pid = $("#PredstavnikID").val();var c_pid = document.getElementById('cboxPartner').ej2_instances[0];c_pid.value = pid;c_pid.dataBind(); // Call databind method to update the value in the control}</script>
Regards,Prince
<script> $(document).ready(function () { var pid = $("#PredstavnikID").val(); var c_pid = document.getElementById('cboxPartner').ej2_instances[0]; c_pid.value = pid; c_pid.dataBind(); // Call databind method to update the value in the control } </script> |
|
<script>
var c_pid = document.getElementById('cboxPartner').ej2_instances[0];
c_pid.allowCustom = false;
</script> |