The change event doesn't actual change when you change the value; it only fires when the control loses focus.
Even on the Telerik Demo, it only updates the log box when you click off of the control.
How do I make it fire when I am typing in the control itself?
3 Answers, 1 is accepted
0
Patrick | Technical Support Engineer, Senior
Telerik team
answered on 04 Jan 2017, 04:32 PM
Hello Tracy,
The behavior you described is by-design, but if you would like to use the change event every time you type, one approach you can use is trigger the change event on the jQuery keydown event.
$(document).ready(function() {
function onChange() {
console.log("changed!");
}
$("#maskedtextbox").kendoMaskedTextBox({
mask: "(999) 000-0000",
change: onChange
});
$("#maskedtextbox").keydown(function() {
var maskedTextBox = $("#maskedtextbox").data("kendoMaskedTextBox");