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

Scroll to top?

1 Answer 49 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jessi
Top achievements
Rank 1
Jessi asked on 03 Jul 2014, 08:15 PM
I want to scroll to the first item in the list. I don't see any thing in the documentation to scroll to the first item in the databoundlistbox. Is this possible?

LongListSelector has "ScrollTo", but databoundlistbox does not seem to have one.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 08 Jul 2014, 06:22 AM
Hi Jessi,

In order to create a "go to top" button you have to use the BringInToView method. After you create the button, you  should subscribe for the tap event and call the BringInToView method with the first item from collection I would recommend examining the  demo named "performance" which demonstrates  this functionality  with the  databoundlistbox control.

Please give it a try and let me know how it goes.

Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
DataBoundListBox
Asked by
Jessi
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or