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

Navigate to view on browser back button

3 Answers 262 Views
Application
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 13 Mar 2016, 11:11 PM

I'm converting a jquery mobile app, a few pages at a time, and one page that is a kendo mobile ui page with 3 views:

1. tasklistfilterview is a view with an mvvm form that provides filtering info and then navigates to views 2 or 3 when they press the Go button.

2. tasklistgridview - shows results from view 1 in a grid

3. tasklistlistview - shows results from view 1 in a list

The user can then click a list item or grid item href with data-rel="external" that takes them to a detail view of the item.

My problem is when the user presses the back button, the grid or list views are shown as empty views with data-role="scollapsible".  I'd like to show the filterview.  

I've tried:  kendo.mobile.application.navigate("tasklistfilterview") in the jquery ready event.

 

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 16 Mar 2016, 07:00 AM
Hi,

I am not sure about the details of your setup, but at any case, mixing jQuery mobile and Kendo UI mobile app instance at the same document is not supported. If this is not your setup, may you provide more details? A dojo would definitely help here.

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Jim
Top achievements
Rank 1
answered on 19 Mar 2016, 10:24 PM

I'm not mixing jqm and kendo in the same page.  That's not the issue at all.  Its simply getting my kendo ui page to act the same way on a back button press as it does on an original load, or refresh.  I know its a common issue with ajax pages,

e.g. http://stackoverflow.com/questions/6359327/detect-back-button-click-in-browser

I'm looking into the cuteness as sushi apps for hints.  I'm hoping the Router will solve my issue, will let you know.

0
Jim
Top achievements
Rank 1
answered on 20 Mar 2016, 02:24 AM

Problem solved.  i added browserHistory: false to:

Kendo.mobile.Application($(document.body), {
        layout: "menulayout",
        hideAddressBar: true,
        transition: "slide",
        skin: "nova",
        browserHistory: false}

Tags
Application
Asked by
Jim
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Jim
Top achievements
Rank 1
Share this question
or