Toby
asked on 12 May 2023, 09:32 AM
| edited on 12 May 2023, 09:44 AM
Hi,
I have used RadListControl.ScrollToItem to bring a searched for item into view,thi sbrings it into view but either at top or bottom of the list. Is it possible to somehow center the selected item in the middle of the view so that I can obtain context based on surrounding items ?
I believe I have answered my own question, so for others to want this ability, this was my solution. "list" is the RadListControl, "curIdx" is the index of the item you want centered in the view
I am glad that you have found a suitable solution for your scenario. Indeed, setting the VScrollBar.Value property is an appropriate way to control to which item the view is navigated.
If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik