Seems there's an issue with back button to listview. Below listview renders fine with load more button and pull to refresh works fine.
However, when i click any list (to show detail content), it shows the detail fine... but when clicking the back button in the header, my listview is collapsed and shows the last item only (all the rest items are below the last item, so it is all collapsed). When i take pull to refresh action, then the listview shows normal.
have any clue???
However, when i click any list (to show detail content), it shows the detail fine... but when clicking the back button in the header, my listview is collapsed and shows the last item only (all the rest items are below the last item, so it is all collapsed). When i take pull to refresh action, then the listview shows normal.
have any clue???
<
div
data-role
=
"view"
data-id
=
"notes-view"
data-layout
=
"main-layout"
data-title
=
"Notes"
data-show
=
"app.showListview"
id
=
"my-notes-view"
>
<
ul
id
=
"note-listview"
class
=
"listview"
data-role
=
"listview"
data-pull-to-refresh
=
"true"
data-load-more
=
"true"
data-source
=
"app.noteDS"
data-template
=
"notesTemplate"
></
ul
>
</
div
>
app.noteDetail =
function
(e){
var
view = e.view,
noteDetailTemplate = kendo.template($(
"#noteDetailTemplate"
).text());
app.noteDS.fetch(
function
(){
item = app.noteDS.get(view.params.id);
//this is actually fetching from ajax...
view.scrollerContent.html(noteDetailTemplate(item));
kendo.mobile.init(view.content);
});
};