How to force a Kendo UI modal window to center in a page? and how to disable all the actions? How to force a Kendo UI modal window to center in a page? and how to disable all the actions? jquery jquery

How to force a Kendo UI modal window to center in a page? and how to disable all the actions?


Have you tried hiding it, then centering and opening it?

var accessWindow = $("#accessDiv").kendoWindow({ actions: {}, /*from Vlad's answer*/ draggable: true, height: "300px", modal: true, resizable: false, title: "Access", width: "500px", visible: false /*don't show it yet*/}).data("kendoWindow").center().open();

from: http://www.kendoui.com/forums/ui/window/kendowindow-center-doesn-t-work-when-inside-an-iframe.aspx


The last two lines should read:

accessWindow.data("kendoWindow").center();accessWindow.data("kendoWindow").open();


1.You need to swap last two lines of code. First of all you need to open window and then you can center it.

2.To show window without any actions you need to pass empty object:

actions: {}