I need copy onkesspress event of txtName the value on txtHumanLabel when user update or insert.
I did this, but does not work
var txtEditId = $telerik.$(masterTable.get_element()).find('input[id*="txtEId"]')[0]; --IS UPDATE??
if (txtEditId == undefined) {
var txtHeader = $telerik.$(masterTable.get_element()).find('input[id*="txtHeader"]')[0]; -- IS INSERT
txtHeader.value = Name.value;
} else {
var txtHeader = $telerik.$(masterTable.get_element()).find('input[id*="txtHeader"]')[0];
var value = txtHeader.value;
if (value.length == 0) {
txtHeader.value = Name.value;
}
}
regards
I did this, but does not work
var txtEditId = $telerik.$(masterTable.get_element()).find('input[id*="txtEId"]')[0]; --IS UPDATE??
if (txtEditId == undefined) {
var txtHeader = $telerik.$(masterTable.get_element()).find('input[id*="txtHeader"]')[0]; -- IS INSERT
txtHeader.value = Name.value;
} else {
var txtHeader = $telerik.$(masterTable.get_element()).find('input[id*="txtHeader"]')[0];
var value = txtHeader.value;
if (value.length == 0) {
txtHeader.value = Name.value;
}
}
regards