Click or drag to resize
KaxTimeViewOnClientTimeSelected Property
Occurs on the client when an time sell in the KaxTimeView control is selected.

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

Property Value

Type: String
The default value is String.Empty
Examples

The following example demonstrates how to attach the OnClientSelectedEvent

[New Example]
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="KaxCalendar.Net2" Namespace="Kettic.AspNetControls" TagPrefix="kaxCln" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <script language="javascript">
    function ClientTimeSelected(sender, args)
    {   
        alert(args.oldTime);
        alert(args.newTime);                
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <kaxCln:KaxTimePicker  
            ID="KaxTimePicker1" 
            runat="server">
            <TimeView OnClientTimeSelected="ClientTimeSelected">
            </TimeView>
        </kaxCln:KaxTimePicker>
    </div>
    </form>
</body>
</html>
See Also