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

100% height in kendo.View or kendo.Layout

2 Answers 14 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matjaz
Top achievements
Rank 1
Matjaz asked on 14 Dec 2014, 05:18 PM
How can I set
type="text/x-kendo-template" id="layout-main"
 to 100% height? In documentation I found only how to use custom tag.
I need this, because I want to display 100% grid in view, his parent is layout and this layout is in another layout.

Comment:
I already post this topic twice, but I get error: Our antispam service detected your content as possible spam ...
I am not sure if post was posted, because I expect that I get error and get redirected after a few seconds, or something else, not the textarea to edit post.

2 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 17 Dec 2014, 07:43 AM
Hello Matjaz,

the script tag serves only as a content of the view/layout templates. You should make sure that the resulting html contains the needed height setting styles/classes, just like you would do in a regular html document. 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Matjaz
Top achievements
Rank 1
answered on 18 Dec 2014, 11:29 AM
After some hard work with studding kendo source, I found correct answer:

new kendo.Layout('index',
{
  model: model,
  tagName: 'div style="height: 100%;"'
});
Tags
General Discussions
Asked by
Matjaz
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Matjaz
Top achievements
Rank 1
Share this question
or