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

Scroll to anchor (widget)

1 Answer 30 Views
Window
This is a migrated thread and some comments may be shown as answers.
Matjaz
Top achievements
Rank 1
Matjaz asked on 13 Oct 2014, 11:35 AM
I need to scroll window to anchor or specific element. I have several ListView in window content.
I would like to scroll to specific ListView on some user event. How?

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 14 Oct 2014, 09:09 AM
Hello Matjaz,

Kendo UI does not provide a built-in way to scroll to specific content, so the described task requires general implementation techniques. You can use scrollIntoView(), jQuery or another third-party widget.

https://developer.mozilla.org/en-US/docs/Web/API/Element.scrollIntoView

http://api.jquery.com/category/offset/

https://www.google.com/webhp?q=scroll+to+element

The element that should be scrolled in your case is the Window widget element, i.e. the <div> from which the Window widget is created.

http://docs.telerik.com/kendo-ui/framework/widgets/wrapper-element

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Window
Asked by
Matjaz
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or