We have a validator on our main view that works fine until we open a search modal.
Just before the modal is hidden we do a hide messages. After returning focus to the main view the validator is still being run (can see in debug) but messages aren't displaying. Have a good trawl around but can't find anything relevant in Forums.
Would appreciate any suggestions?
Commenting .hideMessages() out fixes issues but has undesirable user experience, hence it's addition...
3 Answers, 1 is accepted
The issue you have described is caused by instantiating a new Validator instance over the already existing one. The code in question:
will first create a new Kendo Validator attached to the body element, then will retrieve the widget's instance and call its hideMessages method. Instead the code you be change to the following:
Note the missing kendoValidator call.
Thanks. That did the trick and makes perfect sense when you explained it.