i am trying to validate input for a combobox and trying to make sure that user entered/selected value from a pre-defined list of values. I am using MVVM. I tried this in two ways.
1. Using onChange event of the combobox
I am able to validate the input as below.
(e.sender.value() && e.sender.selectedIndex == -1)
//how to mark the control as invalid??
Problem is i am not able to mark the control as invalid so that kendo framework displays the error message. I have a required validation on this field already.
2. Using rules
(input.val() && input.selectedIndex != -1)