This is a migrated thread and some comments may be shown as answers.
Menu Issue
4 Answers 57 Views
This is a migrated thread and some comments may be shown as answers.
ajit
Top achievements
Rank 1
ajit asked on 08 Jul 2009, 09:13 PM
Hi,
      I have an issue with the behavior of the dropdown menu. I have the property click to open set to true. Now wen click to open and select a menu item the menu does not fall back to its origninal postion and remains opened and doesnt behave like any other dropdown menu. Any solution to this problem would be of great help.


Thank you

Regards,
Ajit
      

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 09 Jul 2009, 07:30 AM
Hi Ajit,

Try using close() method in order to close the parent radmenu item on clicking an item. Try the following client side code by attaching the OnClientItemClicked event to RadMenu.

JavaScript:
 
<script type="text/javascript">  
function OnClientItemClicked(sender, args)  
{  
    var item = args.get_item();  
    var parent = item.get_parent();  
    if(item.get_parent() !=  sender)  
    {  
        item.get_parent().close();  
    }  
}  
</script> 

Thanks,
Princy.
0
ajit
Top achievements
Rank 1
answered on 09 Jul 2009, 02:25 PM
Hello Princy ,
                            Thank you for your quick reply. The code works if the root menu has only one level of sub menus and it does not work if the level is like root->submenu-> sub level menu. Am i doing something wrong. Please could you guide in the correct direction.


Thanks Princy .


Regards,
Ajit
0
ajit
Top achievements
Rank 1
answered on 10 Jul 2009, 01:59 PM
Thnx Princy I managed to resolve it.....

Regards,
Ajit
                
0
Ragu
Top achievements
Rank 1
answered on 22 Mar 2012, 09:55 AM
Hello Ajit,
  I am also facing the same problem as you had. could you please explain me, how did you solve this issue.

Thanks,

V. Raguraman.
Tags
Menu
Asked by
ajit
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
ajit
Top achievements
Rank 1
Ragu
Top achievements
Rank 1
Share this question
or