Non modal Window initial position

2 posts, 1 answers
  1. Mark
    Mark avatar
    87 posts
    Member since:
    Jul 2014

    Posted 20 Oct 2014 Link to this post

    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:

    function clickViewJobLogImage()
        var win = $("#viewJobLogWindow").data("kendoWindow");
        win.title("Testing 123");

    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.
  2. Answer
    Alex Gyoshev
    Alex Gyoshev avatar
    2497 posts

    Posted 22 Oct 2014 Link to this post

    Hello Mark,

    This functionality is not supported at this time. You can set a flag on the window in the dragEnd event, (this.moved = true), and check it before centering (if (!win.moved); )

    Alex Gyoshev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. UI for ASP.NET AJAX banner
Back to Top