I've a grid in Index.cshtml. I implemented a custom dialog for editting. I would change a textbox's state according to the radiobutton value in edit dialog. I got radiobutton change function successfully but it occurs a execption while trying to get compentent instance with documentGetElementById("Something").ej2_instance[0]; How can i get partialview's component from it's main page and that partialview is contained in a dialog.
function onChange(args) {
debugger;
var txtPackageDuration = document.getElementById("packageDuration").ej2_instances[0]; // Cannot read property 'ej2_instances' of null
if (radUncertainDuration.checked) {
txtPackageDuration.enabled = false;
}
else {
txtPackageDuration.enabled = true;
}
}
function onChange(args) { // when i clicked radiobutton on dialog onChangeFunction works successfully
debugger;
var txtPackageDuration = document.getElementById("packageDuration").ej2_instances[0]; Cannot read property 'ej2_instances' of nullCannot read property 'ej2_instances' of null
if (radUncertainDuration.checked) {
txtPackageDuration.enabled = false;
}
else {
txtPackageDuration.enabled = true;
}
}