Grid not scrolling to selected row

3 posts, 1 answers
  1. Joon-Sae
    Joon-Sae avatar
    13 posts
    Member since:
    Mar 2014

    Posted 20 Nov 2017 Link to this post

    In the previous versions of the kendogrid, calling select() on a row element used to force the grid to scroll to that element. It seems this is no longer the case:

    Please see the dojo example of what I am describing:  https://dojo.telerik.com/IvUBa

    In that example, I expect the grid to scroll to row 80 after I programmatically selected that row. Is there a workaround for this or is there anything new I should be calling?

     

    Thanks.

  2. Answer
    Preslav
    Admin
    Preslav avatar
    516 posts

    Posted 21 Nov 2017 Link to this post

    Hi Joon-Sae,

    To achieve the desired behavior, I would suggest following the approach outlined in this forum:
    To do that, set the scrollable configuration to true and set height to the Grid.
    For example, check the modified Dojo: https://dojo.telerik.com/IvUBa/2

    If this is not applicable, you could scroll the browser, for example:

    $('html, body').animate({
    //...

    Finally, I checked the same with older Kendo UI versions and I believe that there is no scrolling there also.

    I hope this helps.


    Regards,
    Preslav
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Joon-Sae
    Joon-Sae avatar
    13 posts
    Member since:
    Mar 2014

    Posted 21 Nov 2017 in reply to Preslav Link to this post

    Awesome, thank you!
Back to Top