Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2290
IGGridView and ScrollsToTop
posted

Hi,

I have a grid that I want to scrolltotop when user taps on a header, so i set boolean attribute ScrollsToTop to true and return true from delegate's ShouldScrollToTop().

1. I never break in ShouldScrollToTop, do I need an export meta command?

2. per documentation it said "the scroll view will jump to the top of the content when the user taps on the status bar.", but what is the status bar?

Is there an example of how it works?

Thank you

Mark

 

Parents
No Data
Reply
  • 40030
    Verified Answer
    Offline posted

    Hey Mark, 

    1. ShouldScrollToTop is a feature of the UIScrollViewDelegate, thats appearing b/c we derive from UIScrollViewDelegate. However, thats only going to get called when its about to scroll to the top. 

    2. The status bar is the top bar in the app(where the battery, cellular, time are displayed), assuming you're not hiding it. Since the IGGridView derives from UIScrollView, it gets this behavior for free. 

    If you want the grid to scroll to the top on a tap, you need to implement a TapGesture and tell the grid to scroll to the top. You can do this by using the ScrollToCell method on the grid, or using the ContentOffset property inherited from the UIScrollView. 

    -SteveZ

Children
No Data