Output Cache and Selected Item

4 posts, 0 answers
  1. Jack
    Jack avatar
    128 posts
    Member since:
    May 2003

    Posted 23 Mar 2013 Link to this post

    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
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 26 Mar 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jack
    Jack avatar
    128 posts
    Member since:
    May 2003

    Posted 26 Mar 2013 Link to this post

    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
  5. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 29 Mar 2013 Link to this post

    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.
Back to Top