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

Prevent window from maximizing on double click

2 Answers 555 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jyothi
Top achievements
Rank 1
Iron
Iron
Veteran
Jyothi asked on 09 Apr 2019, 12:42 PM

Hi,

I'm using Kendo UI Window component for Angular and want to prevent users from maximizing the window. Telerik Kendo UI Window component
I was able to remove the Maximize-button, but a Dobuleclick on titlebar still maximizes the window (.

Any solution for this?

Regards,

Jyothi

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Topalov
Telerik team
answered on 10 Apr 2019, 01:16 PM
Hi Jyothi,

Indeed, currently there is no built-in mechanics for disabling the default double-click behavior. If you have the time, please support the following feature request in our Feedback portal to help us estimate the customer demand for such an enhancement (customizable minimizing and maximizing behavior):

https://feedback.telerik.com/kendo-angular-ui/1382778-windowservice-maximizable-minimizable

Meanwhile, you can use the following workaround - handle the regular DOM dblclick event over the custom title bar contents, and prevent its immediate propagation, e.g.:

https://stackblitz.com/edit/angular-5erajq-zvnrn5?file=app/app.component.ts

Customize the header styling to ensure that the whole title bar is affected by the modified behavior, and the "Close" button is still displayed and active (if needed).

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Jyothi
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 10 Apr 2019, 07:55 PM

Hi Dimiter,

That did the trick. Thanks for your help.

Regards,

Jyothi

Tags
Window
Asked by
Jyothi
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Dimiter Topalov
Telerik team
Jyothi
Top achievements
Rank 1
Iron
Iron
Veteran
Share this question
or