Click or drag to resize
KaxToolBarOnClientMouseOut Property
Gets or sets a value indicating the client-side event handler that is called when the mouse leaves an item in the KaxToolBar control.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public string OnClientMouseOut { get; set; }

Property Value

Type: String
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
Remarks

Use the OnClientMouseOut property to specify a JavaScript function that is executed whenever the user moves the mouse away from a particular item in the KaxToolBar control.

Two parameters are passed to the handler:

  • sender (the client-side KaxToolBar object);
  • eventArgs with two properties:
    • item - the instance of the item which the mouse is moving away from;
    • domEvent - the reference to the browser DOM event
Examples
The following example demonstrates how to use the OnClientMouseOut property.

<script language="javascript">
function onClientMouseOut(sender, eventArgs)
{
var toolBar = sender;
var item = eventArgs.get_item();
var domEvent = eventArgs.get_domEvent(); alert(String.format("You have just moved out of '{0}' item in the {1} toolBar.", item.get_text(), toolBar.get_id()));
alert(String.format("Mouse coordinates: \n\nx = {0}\ny = {1}", domEvent.clientX, domEvent.clientY));
}
</script>
<kettic:KaxToolBar id="KaxToolBar1" runat="server" OnClientMouseOut="onClientMouseOut">
<Items>
<kettic:KaxToolBarButton Text="Bold"></kettic:KaxToolBarButton>
<kettic:KaxToolBarButton Text="Italic"></kettic:KaxToolBarButton>
<kettic:KaxToolBarButton Text="Underline"></kettic:KaxToolBarButton>
</Items>
</kettic:KaxToolBar>

See Also