Click or drag to resize
KaxTabControlOnClientMouseOut Property
Gets or sets a value indicating the client-side event handler that is called when the mouse leaves a tab in the KaxTabControl 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 tab in the KaxTabControl control.

Two parameters are passed to the handler:

  • sender (the client-side KaxTabControl object);
  • eventArgs with two properties:
    • tab - the instance of the tab we are moving away from;
    • domEvent - the instance of the browser event.
Examples
The following example demonstrates how to use the OnClientMouseOut property.

<script language="javascript">
function ClientMouseOutHandler(sender, eventArgs)
{
var tabControl = sender;
var tab = eventArgs.Tab;
var domEvent = eventArgs.get_domEvent();

alert("You have just moved out of " + tab.get_text() + " in the " + tabControl.get_id() + " tabcontrol.");
alert("Mouse coordinates: " + domEvent.clientX + ":" + domEvent.clientY);
}
</script>

<kettic:KaxTabControl id="KaxTabControl1" runat="server" OnClientMouseOut="ClientMouseOutHandler">
<Tabs>
<kettic:KaxTab Text="Personal Details"></kettic:KaxTab>
<kettic:KaxTab Text="Education"></kettic:KaxTab>
<kettic:KaxTab Text="Computing Skills"></kettic:KaxTab>
</Tabs>
</kettic:KaxTabControl>

See Also