I'm using RadDataBoundListBox for my project. It's realy good but I dont know how to scroll to top of list when I use ListHeader too. The method BringIntoView just scroll to top item, but not ListHeader. Please help me. Thank you
Indeed the BringIntoView() method works only with items from the ItemsSource of the RadDataBoundListBox. What you can do is to find the internal ScrollContentPresenter and set its offset to 0. You will have to do this twice because of the UI virtualization of the listbox items - if the header element has been recycled, then the first time you set the scroll offset to 0, it will scroll to the first item. After the items are realized, you will have to scroll again to offset 0. I have attached a sample project that demonstrates how to do this.
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.