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

Databound ScrollView inside an Scroller

1 Answer 68 Views
ScrollView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Oscar
Top achievements
Rank 1
Oscar asked on 02 Oct 2013, 04:30 PM
Looks like there is some bug when you have a databound scrollview inside an scroller element, you cannot scroll between views and data is not shown correctly.
http://jsbin.com/AxEJuPI/2/edit

Am I doing something wrong?
If not, does someone know any fix that could be used right now?

I cannot put the scrollview as the first child element of the mobile view, as the listview may have other fields and the user would need to scroll to see them.

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 04 Oct 2013, 03:30 PM
Hello Oscar,

The example is not working because widget is not initialized at the correct time. Kendo Mobile widgets should be initialized at the init event of the corresponding View or via data attributes in the HTML mark-up.


Executing $('#placeholder').kendoMobileScrollView({ ... }) at the init event fixes the scrolling issue.
On a side note, please note that your dataSource is not configured property so the page virtualization might not work as expected. Data is not passed in pages, page size is too small.

Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ScrollView (Mobile)
Asked by
Oscar
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or