How do I set the initial position of the Window to be centred?
I have hooked up a click event on a button which calls the following JavaScript:
But if the user then drags the window to a new position and then clicks the button to open the window (in effect refresh it) then it jumps back to the centre!
Ideally I want the window to open initially centered but if the user has moved it to open in it's last position on subsequent calls to open it.
I have hooked up a click event on a button which calls the following JavaScript:
function clickViewJobLogImage()
{
var win = $(
"#viewJobLogWindow"
).data(
"kendoWindow"
);
win.title(
"Testing 123"
);
win.refresh();
win.center();
win.open();
}
But if the user then drags the window to a new position and then clicks the button to open the window (in effect refresh it) then it jumps back to the centre!
Ideally I want the window to open initially centered but if the user has moved it to open in it's last position on subsequent calls to open it.