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

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

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

The canvas has been tainted by cross-origin data in chrome only -