Hi,
I have a problem, I dont know why but my data-init function in a main view is being called when I navigate back to that page for the first time. Shouldn't it be called only when its displayed for the first time? I want to separate some initialization logic from show logic in the starting view.
View is defined as a first (and only) view inside the body element.
<div data-role="view" id="..." data-model="..." data-init="initFnc" data-show="show">
</div>
I create the app like this:
var app = new kendo.mobile.Application(document.body, { transition: "slide" });
So once again sequence of events, just to be clear:
1.app started, main view opened -> init and show functions called
2.navigate away, navigate back -> init and show functions called
3.navigate away, navigate back -> show function called
In step 2, I want to call only the "show" function.
Thanks!
I have a problem, I dont know why but my data-init function in a main view is being called when I navigate back to that page for the first time. Shouldn't it be called only when its displayed for the first time? I want to separate some initialization logic from show logic in the starting view.
View is defined as a first (and only) view inside the body element.
<div data-role="view" id="..." data-model="..." data-init="initFnc" data-show="show">
</div>
I create the app like this:
var app = new kendo.mobile.Application(document.body, { transition: "slide" });
So once again sequence of events, just to be clear:
1.app started, main view opened -> init and show functions called
2.navigate away, navigate back -> init and show functions called
3.navigate away, navigate back -> show function called
In step 2, I want to call only the "show" function.
Thanks!