CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Scroll to last panellist item?

by jorgo » 07 Jun 2017 15:31

Hi,

how can I scroll to the last panellist item?

myList.ScrollTo(myList.Items.Items[myList.Items.Count - 1]);

Is there a better solution?

Kind regards
jorgo
 
Posts: 108
Joined: 13 Jul 2016 15:57

by Alexander Bulei » 12 Jun 2017 10:06

Hi jorgo,

how can I scroll to the last panellist item?


myList.ScrollTo(myList.Items.Items[myList.Items.Count - 1]);


It's fine :)

Is there a better solution?


yes:

Code: Select all
myList.ScrollTo(myList.Items.Count - 1)


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to CGPanelList

Who is online

Users browsing this forum: No registered users and 3 guests

Contact Us.