Edit this page

OnClientHidden

(RadContextMenu only) The OnClientHidden client-side event occurs when the context menu disappears.

The event handler receives a single parameter: a reference to the client-side object for the context menu.

You can use this event to respond when the context menu disappears:

<script type="text/javascript">
    function Goodbye(menu) {    
    // reset all items to their initial state
        for (var i = 0; i < menu.get_allItems().length; i++) {
            menu.get_allItems()[i].enable();
        }
    }
</script>
<telerik:RadContextMenu ID="RadContextMenu1" runat="server" OnClientHidden="Goodbye">
    <Items>
        ...
    </Items>
</telerik:RadContextMenu>

See Also