kendo-windo with fixed height and re sizable width

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

    Posted 21 Mar 2019 Link to this post

    Hi,

    I have a kendo-window with a grid and other text component in it. I have a requirement where I need to have a fixed height say 450 px and width of 850px.I need to be able to resize horizontally but the height should not be resizable.

    Is this achievable?

    If I set the [resizable] attribute to false, then I cannot resize the kendo-window at all.

    Is re-sizing only horizontally supported/ If so how can that be done?

    Any help is greatly appreciated.

    Regards,

    Jyothi

  2. Answer
    Martin
    Admin
    Martin avatar
    151 posts

    Posted 22 Mar 2019 Link to this post

    Hi Jyothi,

    The Window component has input properties which define the minimum height and width of the rendered HTML window ( [minHeight] and [minWidth] ), but there is no built-in functionality to set a maximum height and width.
    To accomplish the requirements, use minHeight input with a custom CSS style (max-height property) with same pixels.

    Check the example:
    https://stackblitz.com/edit/angular-hqteeu?file=app/app.component.ts

    This approach defines minHeight (450px) and max-height (450px) which disallows any height changes, but the width of the window is still resizable.

    I hope this helps. Let me know in case I can provide any further assistance for this case.

    Regards,
    Martin
    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 22 Mar 2019 in reply to Martin Link to this post

    Hi Martin,

    Yes that helped. Thanks again for the quick response.

    Regards,

    Jyothi

  4. Jyothi
    Jyothi avatar
    33 posts
    Member since:
    Dec 2018

    Posted 22 Mar 2019 in reply to Martin Link to this post

    Hi Martin,

    That helped. Thanks for your quick response.

    Regards,

    Jyothi

Back to Top