Popup window position ignored when using template

2 posts, 0 answers
  1. Itai
    Itai avatar
    34 posts
    Member since:
    Feb 2016

    Posted 09 May 2016 Link to this post

    I seem to have found a bug, or else I'm going something wrong that I can't figure. It seems as if the `position` property of the window configuration is completely ignored when using a template. I have made a simple example to show this:   

     

    http://dojo.telerik.com/AkiwE

     

    Even though the grid editable has `window: { position: { top: 0, left: 0} } `, the popup window still appears in the middle of the page.

  2. Dimiter Topalov
    Admin
    Dimiter Topalov avatar
    1274 posts

    Posted 10 May 2016 Link to this post

    Hi Itai,

    The described behavior is caused by the fact that the Grid centers the Kendo UI Window after creating it. To bypass this, you can handle the open event of the Window (still in the Grid's editable.window option), and set the desired position via the Window's setOptions() method.

    Check the following dojo for a sample implementation:

    http://dojo.telerik.com/AkiwE/2

    I hope this helps.

    Regards,
    Dimiter Topalov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top