This is a migrated thread and some comments may be shown as answers.

Minimize window on startup

1 Answer 89 Views
Window
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 15 Jul 2015, 09:16 AM

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

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 16 Jul 2015, 12:43 PM
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!
Tags
Window
Asked by
Anthony
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or