Return to current page on listview

4 posts, 0 answers
  1. Kiy
    Kiy avatar
    3 posts
    Member since:
    Apr 2014

    Posted 29 May 2014 Link to this post

    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?
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 31 May 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Kiy
    Kiy avatar
    3 posts
    Member since:
    Apr 2014

    Posted 31 May 2014 Link to this post

    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
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 02 Jun 2014 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready