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

hide radmenu item

3 Answers 69 Views
Menu
This is a migrated thread and some comments may be shown as answers.
beeta one
Top achievements
Rank 1
beeta one asked on 25 Jan 2013, 10:37 AM
How to hide radmenuitem using javascript?

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 25 Jan 2013, 10:44 AM
Hi,

Try the following code snippet to achieve your scenario.

JS:
<script type="text/javascript">
function OnClientClick() {
        var menu = $find("<%=RadMenu1.ClientID %>");
        menu.get_items().getItem(0).set_visible(false);
    }
</script>

Hope this helps.

Regards,
Princy.
0
A. Koster
Top achievements
Rank 1
answered on 24 Jul 2014, 06:40 AM
Hello,
      Can anyone help me out of my issue. I'm using tab key for index change in the Radmenu for that using below javascript and its working fine but for the last Radmenuitem its not getting hidie. so how can i want to change this code to getting hide???

<script language="javascript" type="text/javascript">
function OnClientItemFocus(sender, eventArgs) 
{
eventArgs.get_item().open();
}
</script>

Thanks in Advance
Regards
Reshmaa Ramamurthy.

0
Shinu
Top achievements
Rank 1
answered on 24 Jul 2014, 08:49 AM
Hi A. Koster,

Please try the below JavaScript code snippet which works fine at my end.

JavaScript:
function OnClientItemFocus(sender, eventArgs) {
    eventArgs.get_item().open();
    if (eventArgs.get_item().get_isLast()) {
        window.focus();
    }
}

Thanks,
Shinu.
Tags
Menu
Asked by
beeta one
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
A. Koster
Top achievements
Rank 1
Shinu
Top achievements
Rank 1
Share this question
or