|
Post by noncom on Jun 21, 2023 1:56:12 GMT
Hi!
I need to be able to remove one element from the list upon pressing a button on it. What would be the most idiomatic way of doing this?
My guess is to remove the element from the data and then do `scroller.ReloadData()`.
But maybe there's something else?
|
|
|
Post by echo17 on Jun 21, 2023 11:36:37 GMT
Yes, EnhancedScroller is an MVC (Model - View - Controller) solution, meaning the data drives the view. To add, remove, or change the view, you change the underlying data in your controller and then call ReloadData. ReloadData has an optional parameter that lets you set the scroll position after the reload. See this FAQ for more information: link
|
|