This is a migrated thread and some comments may be shown as answers.

Change Event Firing at incorrect time

1 Answer 66 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Richard Cuti
Top achievements
Rank 2
Richard Cuti asked on 21 Mar 2013, 03:46 PM
We are using a NumericTextBoxFor and we want to capture a change to that field.  Unfortunately though, the event fires upon initialization but not thereafter (not on change).   See example below.    Any help would be appreciated
<div class="inline-datafield" style="width: 400px;">
                @Html.Kendo().NumericTextBoxFor( Model => Model.Interval ).Events(events => events.Change("CheckUpdateBox(this)").HtmlAttributes( new { style = "width:100px"} ).Format("{0:n0}")
            </div>

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 25 Mar 2013, 08:38 AM
Hello Richard,

 
You need to define just the name of the event handler and not execute it:

events.Change("CheckUpdateBox")
Check here for more information.

All the best,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
NumericTextBox
Asked by
Richard Cuti
Top achievements
Rank 2
Answers by
Georgi Krustev
Telerik team
Share this question
or