How to clear or reset to defult value when manual edit value not found in combobox value list

2 posts, 0 answers
  1. Daniel
    Daniel avatar
    16 posts
    Member since:
    Feb 2013

    Posted 11 Jul 2013 Link to this post

    Hello -

    Is there a way to clear manually entered value or reset to defult value in kendo combox when entered value not found in combbox value list.  If yes would you give an example in razor please?


    Thanks
  2. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 15 Jul 2013 Link to this post

    Hello,

    You could use the change event to reset the value if an item from the list is not selected e.g.

    function change(e) {
      if (this.select() < 0) {
          this.value("");
      }
    }
    Regards,
    Daniel
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
Back to Top