KaxMenuOnClientItemClicking Property |
Namespace: Kettic.AspNet.Controls
This event is similar to OnClientItemFocus but fires only on mouse click.
If specified, the OnClientItemClicking client-side event handler is called before a menu item is clicked upon. Two parameters are passed to the handler:
The OnClientItemClicking event can be cancelled. To do so, return False from the event handler.
<script type="text/javascript">
function onClientItemClickingHandler(sender, eventArgs)
{
if (eventArgs.get_item().get_text() == "News")
{
return false;
}
}
</script>
<kettic:KaxMenu ID="KaxMenu1"
runat="server"
OnClientItemClicking="onClientItemClickingHandler">
....
</kettic:KaxMenu>