AUTHOR: Eyup Yusein
DATE POSTED: July 03, 2019
DESCRIPTION
Telerik UI for AJAX toolset provides various input controls like RadNumericTextBox, RadTextBox, RadMaskedTextBox, etc. They have their own built-in OnKeyPress event handler: https://docs.telerik.com/devtools/aspnet-ajax/controls/numerictextbox/client-side-programming/events/onkeypress With some reserved special action keys this event may not be raised - Escape, Tab, etc. If you need to capture these keys, you can use the onkeydown and onkeyup of the underlying input element.
SOLUTION
txtDistance.Attributes.Add(
"onkeyup"
,
"numBoxKeyUp(this, event)"
);
function
numBoxKeyUp(numBoxEl, event) {
var
numBox = numBoxEl.control;
console.log(event.keyCode +
" -> "
+ numBox.get_textBoxValue());
}
Resources Buy Try