SUBMENU CLICK SHOW MAIN MENU

3 posts, 0 answers
  1. Rakesh
    Rakesh avatar
    1 posts
    Member since:
    Aug 2011

    Posted 11 Aug 2011 Link to this post

    Hello Telerik,

    I need with a submenu click i need to show mainmenu

    Thanks,
    Rksh
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 11 Aug 2011 Link to this post

    Hello Rakesh,

    I m not quite sure about the requirement.I suppose you want on SubMenu Click Show the MainMenu text.
    JS:
    <script type="text/javascript">
    function OnClientItemClicked(sender,args)
    {
     if(args.get_item().get_level()>=1)
     {
       var txt = args.get_item().get_parent().get_text();
       var val =document.getElementById("HiddenField1")
       val.value=txt;
     }
    }
    </script>
    C#:
    protected void RadMenu1_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)
      {
         string val = HiddenField1.Value;
         Response.Write(val);
      }

    Thanks,
    Princy.
  3. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 15 Aug 2011 Link to this post

    Hi Rakesh,

    For more details on the different properties and events that you can use on the client-side you could refer to our on-line documentation here and as well as our demos.

    Kind regards,
    Kate
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top