History not saved (or two steps back?)

5 posts, 0 answers
  1. Jaime
    Jaime avatar
    60 posts
    Member since:
    Mar 2013

    Posted 11 Jan 2015 Link to this post

    I have a listview bound to a list of audits that a user must carry-out. When an audit is clicked in the list another listview is shown on page 2 with the details of the audit that need to be taken care of. Once a detail is selected from within that list there is a detail form on a third page. I use app.navigate to drill-down to the detail that needs to be address. The problem is that when I click the back button (standard back button as in examples) the app navigates to the initial page rather than the 2nd page.

    I can't figure out how to address this problem. 
  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 13 Jan 2015 Link to this post

    Hello Jaime,

    this does not seem like a known issue. Is there any chance that your back button has an href="#/" set?

    Regards,
    Petyo
    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. Jaime
    Jaime avatar
    60 posts
    Member since:
    Mar 2013

    Posted 13 Jan 2015 in reply to Petyo Link to this post

    I went to the first view and then clicked an item in the rendered listview.

        //  http://sp/AuditWizard/SelectTemplate/
        <div data-role="view" id="audits-listview" data-title="Audits" data-init="initHandler">
        [List in here]

    In the above list the tap event is handled and the user is sent to another view via app.pane.navigate().
     
        <div data-role="view" id="edit-review-view" data-show="dataShowHandler">
        [List in here]

    In the next listview above the tap event is handled and the click goes to an edit details form via app.pane.navigate.
        <div data-role="view" id="edit-audit-view" data-init="mobile.editAuditView.init">
        [Form in here

    When I click the back button in the browser or type mobileApp.pane.navigate("#:back") in the console I arrive back at the first page.































  5. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 15 Jan 2015 Link to this post

    Hello Jaime,

    The snippets posted so far seem correct. Please try to replicate the problem you experience in a dojo - we will be able to help you further.

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  6. Jaime
    Jaime avatar
    60 posts
    Member since:
    Mar 2013

    Posted 16 Jan 2015 in reply to Petyo Link to this post

    The example I had followed was using a parameter to the application that was breaking the back functionality. 

    pushState : true  

    was the problem.
Back to Top
Kendo UI is VS 2017 Ready