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}")
                </div>
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 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:

    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!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top