Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Minimize window on startup

$
0
0

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


Viewing all articles
Browse latest Browse all 94857

Latest Images

Trending Articles



Latest Images