This question is locked. New answers and comments are not allowed.
Hi,
I have the following code to catch the user key stroke:
@(Html.Telerik().CurrencyTextBox()
.Value(0)
.Name("txtpercent")
.HtmlAttributes(new { style = "width:10px" })
.ClientEvents (e => e.OnLoad("txtpercent_onload()"))
.EmptyMessage(""))
function txtpercent_onload() {
$($("#txtpercent").data("tEditor").body).bind("keydown", function (e) {
alert('hi');
}
Error message:
Microsoft JScript runtime error: Unable to get value of the property 'body': object is null or undefined
I need help on how to solve this issue. Thanks!
I have the following code to catch the user key stroke:
@(Html.Telerik().CurrencyTextBox()
.Value(0)
.Name("txtpercent")
.HtmlAttributes(new { style = "width:10px" })
.ClientEvents (e => e.OnLoad("txtpercent_onload()"))
.EmptyMessage(""))
function txtpercent_onload() {
$($("#txtpercent").data("tEditor").body).bind("keydown", function (e) {
alert('hi');
}
Error message:
Microsoft JScript runtime error: Unable to get value of the property 'body': object is null or undefined
I need help on how to solve this issue. Thanks!