Prevent window from maximizing on double click

3 posts, 1 answers
  1. Jyothi
    Jyothi avatar
    33 posts
    Member since:
    Dec 2018

    Posted 09 Apr 2019 Link to this post

    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. Answer
    Dimiter Topalov
    Admin
    Dimiter Topalov avatar
    1263 posts

    Posted 10 Apr 2019 Link to this post

    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.
  3. Jyothi
    Jyothi avatar
    33 posts
    Member since:
    Dec 2018

    Posted 10 Apr 2019 in reply to Dimiter Topalov Link to this post

    Hi Dimiter,

    That did the trick. Thanks for your help.

    Regards,

    Jyothi

Back to Top