javascript - Kendo scrolling listview not working -


i trying scroll list view top when button clicked, doesn't seem working.

here example...

http://jsbin.com/jofijowa/1/edit

essentially, trying move list view this...

  function scrolltop() {     console.log("hello world"); //debug     var scroller = $("#flat-listview").kendomobilescroller()     console.log(scroller); //debug     scroller.scrolltop(0);   } 

#flat-listview being id of ul

any ideas?

thanks

the kendo mobile scroller uses scrolltop when view has native scrolling enabled. when isn't - uses css transforms scrolling instead. if use reset method of scroller, scroll top regardless of current scrolling type.


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c# - Avoiding duplicate methods for Task and Task<T> -

javascript - Which segment of a polyline was clicked? -