i want to close Menu-items after clicked on any MenuItems using javscript OnClientItemClicked.
and my RadMenuItems are under
<telerik:RadMenu ID="RadMenuClient" runat="server" EnableRoundedCorners="true" EnableShadows="true"
OnClientItemClicked="OnClientItemClicked" ExpandAnimation-Type="None" CollapseAnimation-Type="None"
ExpandDelay="0" CollapseDelay="0" Selected="false" ClickToOpen="true">
<telerik:RadMenuItem ImageUrl="../images/1.jpg" Selected="false">
<GroupSettings ExpandDirection="Down" OffsetX="20" OffsetY="-20" />
<telerik:RadMenuItem Text="Add" Value="Add">
<telerik:RadMenuItem Text="Edit" Value="EditI">
<telerik:RadMenuItem Text="Delete" Value="Delete">
can anyone help me ?
17 Answers, 1 is accepted
i have already try this but it gives me error that cotrolname RadMenuClient could not found.
any other way ?
when i click on item it disappears but when again mouse over that RadMenu it reopen there with selected Item, i need it open only when i click on RadMenu .
I guess you want to achieve the following functionality
1) when you click on a Menu item , Menu should close.
2) On Mouse over RadMenu should not get open and it should happen only when you click on the Rad Menu.
1) To Close the Menu on selecting item( same code which I provide in previous post)
2) To open Rad Menu only on "Click" event
yes u guess exactly what i need and i have already done first 2 steps
thanks for last step it works fine.
The implementation of the ClickToOpen for the sub-items requires a bit different implementation. For a sample implementation, you can check the newly created KB article Apply ClickToOpen functionality for child items.
Please help me. My codes are running properly only the thing is that i have a main menu which have submenu's submenu. when i want to close that menu that time it is not closing i have to click twice for that. so please help me out of this problem. below i am attaching my code which i have tried:
Please help me as soon as possible...
On my side using the OnClientItemClicking event with the following handlers collapses the root item properly.
Thanks a lot now its working properly...
The code you have given is working properly but the problem is that when i am clicking on any menu item to go to another page menu is getting closing and expanding again it should close immidiatly on click if i am going on other page from menu.
Please help me as soon as possible..
I was unable to replicate the described issue.
What I can suggest is preparing a very simple project replicating the issue and a short video demonstrating the reproduction steps and send them to us in an official support ticket. This will allow us to investigate your exact scenario and provide more specific and accurate suggestions.
Once we have a solution, we can share it here for convenience and better visibility from the community.
I am unable to replicate the issue using the implementation of the attached webform.
Please modify it to reproduce the issue and send it as an attachment in an official support ticket so that we can investigate locally and provide more specific suggestions.
Once we find a solution, we can share it here for convenience and better visibility from the community.