KaxToolBarOnClientContextMenu Property |
Namespace: Kettic.AspNet.Controls
Use the OnClientContextMenu property to specify a JavaScript function that will be executed before the context menu shows after right clicking an item.
Two parameters are passed to the handler
<script language="javascript">
function onContextMenuHandler(sender, eventArgs)
{
var toolBar = sender;
var item = eventArgs.get_item();
alert(String.format("You have right-clicked the {0} item in the {1} toolBar.", item.get_text(), toolBar.get_id());
}
</script>
<kettic:KaxToolBar id="KaxToolBar1" runat="server"
OnClientContextMenu="onContextMenuHandler">
<Items>
<kettic:KaxToolBarButton Text="Bold"></kettic:KaxToolBarButton>
<kettic:KaxToolBarButton Text="Italic"></kettic:KaxToolBarButton>
<kettic:KaxToolBarButton Text="Underline"></kettic:KaxToolBarButton>
</Items>
</kettic:KaxToolBar>