Window.Center() does nothing

4 posts, 0 answers
  1. Ron
    Ron avatar
    11 posts
    Member since:
    Mar 2014

    Posted 20 Jul 2015 Link to this post

    Hi, I tried to get a modal window to center and its not having any effect.

    I can move the window around with the position attributes, and by putting the window div in different places in the DOM..

    The center() function does not throw any exceptions.

    The problem exists in both Chrome and IE11.

    My page does not contain any Iframes. Any advice?

  2. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 20 Jul 2015 Link to this post

    Hello Ron,

    Please compare your implementation with this example and let me know if you need more information.

    http://dojo.telerik.com/ijEzU

    Regards,
    Dimo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Ron
    Ron avatar
    11 posts
    Member since:
    Mar 2014

    Posted 20 Jul 2015 in reply to Dimo Link to this post

    Thanks Dimo,

     I have stripped my page down to the bare minimum until it was pretty much the same as yours and the problem still exists. The only difference on my page is I am using ASP.NET MVC js libraries for example..

    <script src="/scripts/jquery-2.1.1.js"></script>    
    <script src="/scripts/kendo/2015.1.429/kendo.all.min.js"></script>
    <script src="/scripts/kendo/2015.1.429/kendo.aspnetmvc.min.js"></script>
    <link href="/content/kendo/2015.1.429/kendo.common-bootstrap.min.css" rel="stylesheet"/>

  5. Ron
    Ron avatar
    11 posts
    Member since:
    Mar 2014

    Posted 20 Jul 2015 Link to this post

    Turns out my local JQuery-2.1.1.min.js was not the same as the CDN jquery-2.1.1.min.js..

    Not sure how that happened, its all working now.

    Thanks for your help.

Back to Top
Kendo UI is VS 2017 Ready