Hello,
I am trying to set read-only inputs in the add/edit dialog when a user selects a drop-down value. I accomplished this by binding the "change" handler to the drop-down list, and executing the following code:
function itemDropDownHandler(args) {
var grid = $("#@gridId")[0].ej2_instances[0];
var price = grid.editModule.formObj.element.querySelector("#@(gridId)Price");
price.value = args.itemData.Price;
}
The field is set correctly after selecting a drop-down value. However, after clicking on the Price field, the Price value gets reset to what it was before.
Thanks,
Derek B