I have a tab strip that links to two views (snippet 1). What I would like to do is have a way to initially select the second tab and its corresponding view.
I tried using the selectedIndex property (snippet 2), but it seems to always display whichever view I define first in code - I can change the highlighted tab, but what I really want to do is change the view that is displayed.
I have tried various versions of using the application's navigate method from body.onload, but that seems to work poorly.
Any ideas?
(Snippet 1)
<div data-role="footer">
<div data-role="tabstrip" id="tabstrip">
<a href="#tabstrip-viewnotes" data-icon="recents">View Notes</a>
<a href="#tabstrip-addnote" data-icon="add">Add Note</a>
</div>
</div>
(Snippet 2)
$("#tabstrip").kendoMobileTabStrip({
selectedIndex: 1
});
I tried using the selectedIndex property (snippet 2), but it seems to always display whichever view I define first in code - I can change the highlighted tab, but what I really want to do is change the view that is displayed.
I have tried various versions of using the application's navigate method from body.onload, but that seems to work poorly.
Any ideas?
(Snippet 1)
<div data-role="footer">
<div data-role="tabstrip" id="tabstrip">
<a href="#tabstrip-viewnotes" data-icon="recents">View Notes</a>
<a href="#tabstrip-addnote" data-icon="add">Add Note</a>
</div>
</div>
(Snippet 2)
$("#tabstrip").kendoMobileTabStrip({
selectedIndex: 1
});