This question is locked. New answers and comments are not allowed.
Hi,
I've been developing a mobile app with AppBuilder in Visual Studio using Kendo Mobile. There's a part of the application where the user navigates from a list of itemsto a detail of one item, which is itself two views of the same data with a tabstrip to navigate between them. However, I don't want the user to switch between them and then have to navigate back through the history stack to get back to the results, but to go back to the results page directly from either detail page.
To get around this, I am using Application.replace when switching between the detail views. This works, however I have found a bug in the code for the router object (kendo.router.js), at least running in the simulator. While debugging through the Kendo code, I noticed the history stack wasn't being altered correctly and instead of the last item in the location stack being replaced, a new item was being added with an index of NaN.The replace function currently is:
Should this code be:
Also, I've found that following a call to Application.replace, navigating via the back button widget causes the hosting web view to be reloaded in the simulator and as a result the application gets completely reinitialised and all state is lost. I'm wondering if this is by design or is this a bug?
I'm using kendo.mobile.min.js (Kendo UI Core v2014.2.909).
Thanks,
Rob
I've been developing a mobile app with AppBuilder in Visual Studio using Kendo Mobile. There's a part of the application where the user navigates from a list of itemsto a detail of one item, which is itself two views of the same data with a tabstrip to navigate between them. However, I don't want the user to switch between them and then have to navigate back through the history stack to get back to the results, but to go back to the results page directly from either detail page.
To get around this, I am using Application.replace when switching between the detail views. This works, however I have found a bug in the code for the router object (kendo.router.js), at least running in the simulator. While debugging through the Kendo code, I noticed the history stack wasn't being altered correctly and instead of the last item in the location stack being replaced, a new item was being added with an index of NaN.The replace function currently is:
replace: function(to, silent) {
this._navigate(to, silent, function(adapter) {
adapter.replace(to);
this.locations[this.locations - 1] = this.current;
});
},
Should this code be:
replace: function(to, silent) {
this._navigate(to, silent, function(adapter) {
adapter.replace(to);
this.locations[this.locations.length - 1] = this.current;
});
},
Also, I've found that following a call to Application.replace, navigating via the back button widget causes the hosting web view to be reloaded in the simulator and as a result the application gets completely reinitialised and all state is lost. I'm wondering if this is by design or is this a bug?
I'm using kendo.mobile.min.js (Kendo UI Core v2014.2.909).
Thanks,
Rob