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

Output Cache and Selected Item

3 Answers 38 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 24 Mar 2013, 02:24 AM
Hi Guys,

I'd like to Output Cache my menu - it is different in only 2 cases - Logged in and ClientID; I can handle these OK but what can I do about the selected item? Currently I'm using FindItemByValue and selecting it in code.

How to handle the selected Item client side please?

Cheers,
Jon

3 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 26 Mar 2013, 02:51 PM
Hi Jon,

Please take a look at the following help article that I believe would be very useful in getting the desired scenario - Use RadMenu in a user control with OutputCache enabled

Kind regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Jon
Top achievements
Rank 1
answered on 26 Mar 2013, 11:10 PM
Hi Kate,

Thanks you for the reply.
Yes, I have already implemented this but it doesn't solve the issue of the 'SelectedItem'
I'm just wondering if it is possible now?

Cheers,
Jon
0
Kate
Telerik team
answered on 29 Mar 2013, 02:00 PM
Hello Jon,

An equivalent of the server side code FindItemByValue("ItemText").Selected=true (as I assume it is the one that you are using) would be a findItemByValue("ItemText").set_selected(true); as exemplified in the following two articles - RadMenu object and RadMenuItem object. Give it a try and let me know if this helps in getting the desired scenario.

Regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Menu
Asked by
Jon
Top achievements
Rank 1
Answers by
Kate
Telerik team
Jon
Top achievements
Rank 1
Share this question
or