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

A bug in the programmatic initialization

1 Answer 42 Views
ScrollView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Vladimir
Top achievements
Rank 1
Vladimir asked on 31 Jul 2013, 12:53 PM
Hi!
In the new version of Kendo Mobile Framework the kendoMobileScrollView ininitializes normally with data-role="scrollview" attribute ( http://jsfiddle.net/papageno/c8Hm6/10/ ), but when I try to initialize programmatically: $('#sv').kendoMobileScrollView(); ( http://jsfiddle.net/papageno/c8Hm6/9/ ) error occurs.

The error can be eliminated by changing the line:
that._content = options.dataSource ? new VirtualScrollViewContent(that.inner, that.pane, that.options) : new ScrollViewContent(that.inner, that.pane);
to line:
that._content = that.options.dataSource ? new VirtualScrollViewContent(that.inner, that.pane, that.options) : new ScrollViewContent(that.inner, that.pane);

Thank you!

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 02 Aug 2013, 07:47 AM
Hi Vladimir,

Thank you very much for spotting this - I am updating your telerik points for this finding. We are going to address this in our next internal build. 

Regards,
Petyo
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
Vladimir
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or