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

SUBMENU CLICK SHOW MAIN MENU

2 Answers 46 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Rakesh
Top achievements
Rank 1
Rakesh asked on 11 Aug 2011, 07:12 PM
Hello Telerik,

I need with a submenu click i need to show mainmenu

Thanks,
Rksh

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Aug 2011, 04:57 AM
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.
0
Kate
Telerik team
answered on 15 Aug 2011, 01:52 PM
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.

Tags
Menu
Asked by
Rakesh
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Kate
Telerik team
Share this question
or