Menu Issue

5 posts, 0 answers
  1. ajit
    ajit avatar
    46 posts
    Member since:
    Jun 2009

    Posted 08 Jul 2009 Link to this post

    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
          
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 09 Jul 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. ajit
    ajit avatar
    46 posts
    Member since:
    Jun 2009

    Posted 09 Jul 2009 Link to this post

    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
  5. ajit
    ajit avatar
    46 posts
    Member since:
    Jun 2009

    Posted 10 Jul 2009 Link to this post

    Thnx Princy I managed to resolve it.....

    Regards,
    Ajit
                    
  6. Ragu
    Ragu avatar
    9 posts
    Member since:
    Feb 2012

    Posted 22 Mar 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017