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
Post a Comment