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

Programmatically Navigating iPhone Menu

3 Answers 41 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 19 Aug 2010, 09:55 PM
I have multiple iPhone menus set up ( from this example ... http://demos.telerik.com/aspnet-ajax/menu/examples/appearance/iphonemenu/defaultcs.aspx ) and I'd like the menus to reset to the base level when I switch sections.  Is there any way to programmatically achieve this result?

Thanks in advance,

Lars Solberg

3 Answers, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 25 Aug 2010, 01:02 PM
Hi Lars,

I'm not sure what do you mean by "reset to the base level when I switch sections". Are your iPhone RadMenus somehow connected and can you send a live URL where we can check the behavior and provide you a solution? Thank you in advance.

Best wishes,
Kamen Bundev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Dan
Top achievements
Rank 1
answered on 25 Aug 2010, 04:29 PM
Sorry for the confusion, I will attempt to explain my scenario better.  The question really boils down how it's possible to, once the menu has been navigated to a sub level, to programmatically navigate it back to the root level (e.g. if I clicked 'music' link from the demo and then wanted to get back up a level via the code and not the back button).

Also, is there a way to apply a css style once an item has been clicked?

Thanks again,

Lars Solberg
0
Kamen Bundev
Telerik team
answered on 30 Aug 2010, 03:08 PM
Hello Lars,

Thank you for the suggestion. It was implemented and the example improvement will be available with the next internal build and service pack. I'm attaching the modified javascript file. You can navigate back by using this method:
iPodMenu1.navigateBack(true);

Please note that the default parameter is false which will navigate back only one level. I've also updated your Telerik points for the suggestion.

Kind regards,
Kamen Bundev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Menu
Asked by
Dan
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Dan
Top achievements
Rank 1
Share this question
or