If you do not need the dialog to be opened initially, it is correct to set the visible property to false.
However, the reason for this not to work is most probably due to issues with the way the Kendo Window is opened or initialized.
In the code pasted below the issue is that there are two click handlers: One handled via the onclick attribute and second via the jQuery.click() method. The first handler (ValidateUsertwo()) should open Kendo Window, but such does not exists as it is not initialized. Further, not that the attribute is assigned with a return statement. But the ValidateUsertwo() method never returns true. This cancels the click event and prevents further handlers to be executed. This prevents the handler assigned with the jQuery.click() method to be called. Finally, with the code shown, Kendo Window widget is never initialized.
On a side note, the submit button has no id assigned, therefore the $("#submit") should return an empty jQuery object. Which is another possible reason for the Kendo Window not being initialized.
Basically, to resolve the situation you have you should make sure that Kendo Window is actually initialized. I suggest you having the visible set to false and debug the code implemented to find the reason for the widget not being initialized and opened.
Typically, there are to simple ways to achieve that:
- Having the Kendo Window initialized intiialiy:
- Initializing Kendo Window on click:
I hope that helps with the case you have.
Telerik by Progress
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items