I have a Kendo dialog which does a network call on clicking the primary action, and I need to block closing the dialog if that network call fails. See this Dojo for a rough demo