100% height in kendo.View or kendo.Layout

3 posts, 0 answers
  1. Matjaz
    Matjaz avatar
    94 posts
    Member since:
    Jun 2014

    Posted 14 Dec 2014 Link to this post

    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. Petyo
    Admin
    Petyo avatar
    2444 posts

    Posted 17 Dec 2014 Link to this post

    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!
     
  3. Matjaz
    Matjaz avatar
    94 posts
    Member since:
    Jun 2014

    Posted 18 Dec 2014 Link to this post

    After some hard work with studding kendo source, I found correct answer:

    new kendo.Layout('index',
    {
      model: model,
      tagName: 'div style="height: 100%;"'
    });
Back to Top