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

What is the alternate of "height:calc(100% - 20px)"

1 Answer 85 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
shaohua
Top achievements
Rank 1
shaohua asked on 24 May 2017, 06:20 PM

For the asp web controls, we can use something like "height:calc(100% - 20px)" to define the height and width.

However when I tried to use it for telerik control:

Height="calc(100%-20px)"

I got parser error.

 

Thanks.

 

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 29 May 2017, 06:23 AM
Hi Shaohua,

Generally, you can use the CssClass property to achieve this requirement. If you plan to set the height of the grid in percents, you can go through the following code-library:
http://www.telerik.com/support/code-library/setting-radgrid's-height-in-percents

Regards,
Eyup
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
shaohua
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or