Change Event Firing at incorrect time

2 posts, 0 answers
  1. Richard Cuti
    Richard Cuti avatar
    5 posts
    Member since:
    Mar 2007

    Posted 21 Mar 2013 Link to this post

    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}")
  2. Georgi Krustev
    Georgi Krustev avatar
    3724 posts

    Posted 25 Mar 2013 Link to this post

    Hello Richard,

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

    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!
Back to Top