Page 1 of 1

Master-detail page

Posted: Sat May 23, 2015 8:39 am
by Paul C

Hi,
I implemented the master-detail page to show list of picture. When user click on the picture in the master page, the app will navigate to the detail page. My question is that when user click on the "Back button" to go back to master page, it always show the all items start from item #1.
In case my user click on the item #120, can I implement some code when user click "Back button" in the detail page, the master page will continue on the item #120 instead of the item #1?
Thanks.
Paul


Master-detail page

Posted: Sat May 23, 2015 3:26 pm
by Evgene Karachevtsev

Hello Paul,

We are very sorry but custom app logic is outside the scope of our support, but you may try to implement the current logic:
create an array with the numbers of the images;
on pageload event (when the page will be showed for the first time) set some variable to the first number of this array;
remember what image was clicked and write its number to this variable;
when you get back to the master-detail page by clicking on back button position your page "near" this variable with .scrollTop() function;
the last code should be called on pageshow event.


Master-detail page

Posted: Sun May 24, 2015 2:08 am
by Paul C

Hi Evgene
Thanks for your help. I'll try it.
Paul