Minimize window on startup

2 posts, 0 answers
  1. Anthony
    Anthony avatar
    122 posts
    Member since:
    Jun 2013

    Posted 15 Jul 2015 Link to this post

    Hi

      I've kind of got this working at the moment but badly, e.g.

       onActivate = (e: any) =>
       {
             if (this.minimiseOnStartup)
              {
                    setTimeout(this.Minimise, 1);
              }
        }

        Minimise = () =>
            {
                var $kendoWindow = $(this.windowId);
                $kendoWindow.data('kendoWindow').minimize();
            }

     

    (this is typescript rather than javascript but I'm sure you get the point)

    So, in the onActivate call I call the minimize function (this is with the opening animation switched off). This means the windows first appear full size then shrink down. If you call minimize without the slight delay it doesn't work at all.

    Question

    - Is there a better way of doing this? I couldn't find a configuration option

    Failing that I'll have to look into hiding the window until the minimize has finished, but that feels like a hack

     

    thanks

  2. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 16 Jul 2015 Link to this post

    Hello Anthony,

    The Window is not designed to be initially minimized, but I think the following behavior looks OK in terms of user experience:

    http://dojo.telerik.com/amIPI

    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
Back to Top