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

ng-valid Issue

1 Answer 10 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Elliot
Top achievements
Rank 1
Elliot asked on 11 Jun 2015, 07:39 PM
I implemented the functionality from here to clear text when it doesnt match an item from the datasource however the input is marked valid even though it is marked required.  How do I correct this?

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 15 Jun 2015, 12:54 PM
Hello Elliot,

In general, the value method will not trigger change event, which many bindings listen to. I am not exactly sure what exactly is the implementation, but I suppose that you need to trigger change to notify for the update:
widget.value(""); //reset widget
widget.trigger("change");
Be careful to avoid infinitive loop when call trigger("change") in the change event callback.

If the problem still persists, please send us a repro demo.

Regards,
Georgi Krustev
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
Elliot
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or