This is a migrated thread and some comments may be shown as answers.

Return to current page on listview

3 Answers 64 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Kiy
Top achievements
Rank 1
Kiy asked on 29 May 2014, 01:53 PM
Hi,
Please, check my code here:
http://jsbin.com/lukera/3/edit?html

The problem happens while I’m using list view in view details2. When I click on position in this list, I go to view details, but after returning to the same page (view details2) instead of correct data I see:
× data from other pages or
× Uncaught TypeError: undefined has no properties at file:///android_asset/www/index.html#details2?id=9:2

Can anyone help me?

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 31 May 2014, 05:18 AM
Hi Kiy,

I have tested your example, but it relies on some remote data, so I was not able to correctly run it and therefore reproduce the issue. In general in your showDetailsView2() you are parsing view.params.id, however I was not able to see where exactly you set these parameters prior to navigation ot the view. 

Here is a getting started article explaining how to pass parameters between views, that might be helpful:

http://docs.telerik.com/kendo-ui/getting-started/mobile/view#view-parameters

If this does not help, please provide us with a runnable sample, so we are able to reproduce the problem and assist you further.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Kiy
Top achievements
Rank 1
answered on 31 May 2014, 11:56 PM
http://jsbin.com/sepunecu/1/edit
Where i click on position (21+ item) in view details2, i go to view details and after return i don't see data 21 item, but if i click on posotion (1-20) after return i can see data
0
Kiril Nikolov
Telerik team
answered on 02 Jun 2014, 07:51 AM
Hello Kiy,

This behavior is expected. When you use Kendo UI Mobile ListView with endless scrolling enabled, the scroller is reset every time you navigate to the view, this is due to the fact that when endless scrolling is enabled the items are virtualized, so when you navigate to the view it is not clear of items are loaded or not, and this is why the scroller is reset to show the first page of items. I am afraid that currently there is no workaround for this behavior.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
ListView (Mobile)
Asked by
Kiy
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Kiy
Top achievements
Rank 1
Share this question
or