This is a migrated thread and some comments may be shown as answers.

ScrollView changing event

2 Answers 58 Views
ScrollView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Seth Morecraft
Top achievements
Rank 1
Seth Morecraft asked on 30 May 2013, 09:17 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 03 Jun 2013, 12:49 PM
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!
0
Seth Morecraft
Top achievements
Rank 1
answered on 03 Jun 2013, 05:49 PM
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
Tags
ScrollView (Mobile)
Asked by
Seth Morecraft
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Seth Morecraft
Top achievements
Rank 1
Share this question
or