|
<script>
var src = '@Url.Action("GetMjesta", "Mjestoes", new { area = "" })';
$.ajax({
cache: false,
url: src,
type: "get",
}).done(function (data) {
// Creating instance for Combo box
var comboObj = document.getElementById("cboxMjesto").ej2_instances[0];
// updating the new data in dataSource property
comboObj.dataSource = data;
// calling the dataBind method to update the changes in combo box
comboObj.dataBind();
}).fail(function () {
alert('error');
});
</script> |
|
<script>
// Creating instance for Combo box
var c_pid= document.getElementById("cboxPartner").ej2_instances[0];
// setting the value using value property
c_pid.value= pid;
// calling the dataBind method to update the changes in combo box
c_pid.dataBind();
</script> |