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

Grid not scrolling to selected row

2 Answers 454 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joon-Sae
Top achievements
Rank 1
Joon-Sae asked on 20 Nov 2017, 08:46 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Preslav
Telerik team
answered on 21 Nov 2017, 11:29 AM
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.
0
Joon-Sae
Top achievements
Rank 1
answered on 21 Nov 2017, 04:12 PM
Awesome, thank you!
Tags
Grid
Asked by
Joon-Sae
Top achievements
Rank 1
Answers by
Preslav
Telerik team
Joon-Sae
Top achievements
Rank 1
Share this question
or