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

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

1 Answer 307 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 11 Jul 2013, 08:54 PM
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

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 15 Jul 2013, 01:21 PM
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!
Tags
ComboBox
Asked by
Daniel
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or