KeyPress event for ComboBox

2 posts, 0 answers
  1. Sean
    Sean avatar
    1 posts
    Member since:
    Jan 2015

    Posted 14 Oct 2016 Link to this post

    I am trying to call a function each time a key is pressed in the textbox of the combobox to update another pulldown box.


    Here is my razor code.


                                            @(Html.Kendo().ComboBoxFor(m => m.ToAccountID)
                                                .HtmlAttributes(new { style = "width:100%;" })
                                                .Events(e =>


    I have tried this but get a javascript error.

      // javascript




    TypeError: $(...).data(...) is null


  2. Eyup
    Eyup avatar
    3296 posts

    Posted 18 Oct 2016 Link to this post

    Hello Sean,

    Try to transfer your logic after the page is loaded and ready:

    That should resolve the issue.

    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top