ScrollView changing event

3 posts, 1 answers
  1. Seth Morecraft
    Seth Morecraft avatar
    7 posts
    Member since:
    Mar 2010

    Posted 30 May 2013 Link to this post

    Hi guys,
      I am working with the ScrollView and trying to prevent users from scrolling to certain pages.  I created an event handler for changing.  According to the docs, there should be currentPage and nextPage numbers available in the event.  It appears that only the currentPage is available when I dump out the event object.  Can you help me out with this?

    Using Q1 2013 release
    Reference: http://docs.kendoui.com/api/mobile/scrollview#events-changing

    Thanks!
    Seth
  2. Answer
    Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 03 Jun 2013 Link to this post

    Hi Seth,

    I am glad to inform you that this issue is fixed in the latest internal build. Please download it and give it a try.

    As an alternative solution, you may calculate the nextPage on the basis of currentPage index.
    var nextPage = currentPage + 1;

    Regards,
    Alexander Valchev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Seth Morecraft
    Seth Morecraft avatar
    7 posts
    Member since:
    Mar 2010

    Posted 03 Jun 2013 Link to this post

    Hi Alexander,
      Just downloaded the latest and yes, it works great!  The problem with the optional solution you mention is if the user is going 'back' a page it won't work as expected- that was what I really needed.  Your event is now working as the documentation states with the internal build though so it is all good.  Thanks for your quick help!
    Seth
Back to Top