kendo grid height adjustment to 5 rows

2 posts, 0 answers
  1. Maksim
    Maksim avatar
    22 posts
    Member since:
    Apr 2013

    Posted 17 May 2016 Link to this post

    Hi,

    I need to draw editable grid of 5 rows, each row can contain multi line cells with variable height.
    My page is like that (see the attachement)
    <editable grid> [covers exactly 5 rows, each row with variable height]
    <other contents>
    https://yadi.sk/i/SCNGZOFxrnFSf
    my scroll viewport should be 5 rows height

    I need <other contents> to start exactly after 5th row, which should be fully shown
    I need to calculate table height after render

    Is there grid 'after render' event? What are workarounds for my case?
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2062 posts

    Posted 19 May 2016 Link to this post

    Hello Maksim,

    I already replied to this question in your support thread, but I will post my answer here in case someone is looking for the same thing. 

    My suggestion is to use the dataBound event. If this event does not meet your expectations the logic for calculating the height can be placed inside a setTimeout function in the dataBound event handler. 

    Regards,
    Boyan Dimitrov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top