I use a popup window to edit a grid row and I also use verification in this window. The popup also has a cancel button. Should the user fail the verification and the messages appear and then decides to cancel the editing by clicking the cancel button, the window closes but the message stays there! I managed to remove them by adding a close function bound to the classes of the error messages but it seems to me an ineffective and probable not correct way of doing it. I used the “jqx-validator-hint” class to select them for closure in the click event handler of the cancel button.
Is that the correct way or are there a better way?