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

Navigate to section on mobile

1 Answer 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Antoine
Top achievements
Rank 1
Antoine asked on 20 Oct 2014, 01:31 PM
Hi,

I am currently developing an application with a tabstrip and I wanted to know if there is a way to navigate to a specific section on a page when I select a view.

For example I want to go to the section with id="bar" when I select the view foo.

I tried this but it didn't work : 


            <div data-role="tabstrip">
                <a href="views/home.html" data-icon="home">home</a> 
                <a href="views/foo.html#bar" data-icon="settings">foo</a>
            </div>

The real question is : Is there a way to have content that is visible only when I pull down the page ?

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 22 Oct 2014, 07:21 AM
Hello Antoine,

Since the mobile application uses the frament part of the url (the #bar part), and also features javascript scrolling, anchor navigations do not work. you may, however, scroll to a specific section of the view by using the scrollTo method of the scroller in the view show event handler, for example. 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Antoine
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or