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

Scrolling to the beginning of the list

1 Answer 16 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.
Igor
Top achievements
Rank 1
Igor asked on 06 Feb 2015, 01:30 PM
I have a RadDataBoundListBox with a quite big header defines using ListHeaderTemplate. I need a way to scroll to the beginning of the list, so the header is not visible.

I could you BringIntoView when there is at least one item in the list, but how do I do it if the list is empty?

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 11 Feb 2015, 10:13 AM
Hello Igor,

Thank you for contacting us.

Unfortunately, when there are no items in the list box, you can not scroll to a position where the the header is hidden. It is part of the scrollable content of the list box and when there are no items, the bottom of the header is the bottom of the scrollable content. If you wish to hide the header when there is no data, then you can set the ListHeaderDisplayMode property to "WithDataItems". Finally, I have attached a sample project that demonstrates how you can scroll to the bottom of the list box.

I hope this helps. Please, let us know if you have further questions.

Regards,
Rosy Topchiyska
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
Igor
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or