Menu for ASP.NET Web Forms includes several client-side events that allow you to manipulate the C1Menu controls when an action such as resizing the dialog window occurs.
You can use the server-side properties, listed in the Client Side Event table, to specify the name of the JavaScript function that will respond to a particular client-side event. For example, to assign a JavaScript function called "Focus" to respond when the Menu gains focus, you would set the OnClientFocus property to "focus".
The following table lists the events that you can use in your client scripts. These properties are defined on the server side, but the actual events of the name you declare for each JavaScript function are defined on the client side.
Event Server-Side Property Name | Event Name | Description |
---|---|---|
OnClientBlur | blur | Occurs when a menu item loses focus |
OnClientFocus | focus | Occurs either on mouse hover or when the keyboard cursor keys are used for navigation |
OnClientHidden | hidden | Occurs when the menu is closed. |
OnClientHidding | hidding | Occurs when the menu is closing. |
OnClientSelect | select | Occurs when a menu item has been selected. |
OnClientShowing | showing | Occurs when the menu is opening. |
OnClientShown | shown | Occurs when the menu is opened. |