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

History not saved (or two steps back?)

4 Answers 45 Views
Application
This is a migrated thread and some comments may be shown as answers.
jwize
Top achievements
Rank 1
jwize asked on 11 Jan 2015, 08:42 PM
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. 

4 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 13 Jan 2015, 12:07 PM

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!
 
0
jwize
Top achievements
Rank 1
answered on 13 Jan 2015, 08:41 PM
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.































0
Petyo
Telerik team
answered on 15 Jan 2015, 12:46 PM

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!
 
0
jwize
Top achievements
Rank 1
answered on 16 Jan 2015, 07:58 PM
The example I had followed was using a parameter to the application that was breaking the back functionality. 

pushState : true  

was the problem.
Tags
Application
Asked by
jwize
Top achievements
Rank 1
Answers by
Petyo
Telerik team
jwize
Top achievements
Rank 1
Share this question
or