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

kendo-windo with fixed height and re sizable width

3 Answers 786 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 21 Mar 2019, 12:00 PM

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

3 Answers, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 22 Mar 2019, 11:06 AM
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.
0
Jyothi
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 22 Mar 2019, 08:34 PM

Hi Martin,

Yes that helped. Thanks again for the quick response.

Regards,

Jyothi

0
Jyothi
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 22 Mar 2019, 08:35 PM

Hi Martin,

That helped. Thanks for your quick response.

Regards,

Jyothi

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