Hi,
I have got a view with a lot of content (about 18000px high on my smartphone) and I am trying to jump to a specific position in the view by calling
$('#myview').data('kendoMobileView').scroller.scrollTo(0,-200);
upon clicking a particular button. If I click the button before I do anything else, this does not work properly: the scroller scrolls down a bit but returns to the top immediately. However, if I scroll the scroller manually before I click the button, it works perfect.
By the way, I also found that the scrollTop property of the scroller widget returns undefined or NaN in the beginning.
Best,
Alex
P.S.: I am using Kendo UI Mobile 2013.1.527 but the error also occurs with the stable build 2013.1.514.
I have got a view with a lot of content (about 18000px high on my smartphone) and I am trying to jump to a specific position in the view by calling
$('#myview').data('kendoMobileView').scroller.scrollTo(0,-200);
upon clicking a particular button. If I click the button before I do anything else, this does not work properly: the scroller scrolls down a bit but returns to the top immediately. However, if I scroll the scroller manually before I click the button, it works perfect.
By the way, I also found that the scrollTop property of the scroller widget returns undefined or NaN in the beginning.
Best,
Alex
P.S.: I am using Kendo UI Mobile 2013.1.527 but the error also occurs with the stable build 2013.1.514.