Click or drag to resize
KaxSchedulerOnClientNavigationCommand Property
Gets or sets a value indicating the client-side event handler that is called when the scheduler is about to execute a navigation command.

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 OnClientNavigationCommand { 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

If specified, the OnClientNavigationCommand client-side event handler is called when the scheduler is about to execute a navigation command.

Two parameters are passed to the handler:

  • sender, the scheduler client object;
  • eventArgs with two properties:
    • get_command(), the navigation command that is being processed.
    • set_cancel(), used to cancel the event.

This event can be cancelled.

Examples

<script type="text/javascript">
function clientNavigationCommandHandler(sender, eventArgs)
{
if (eventArgs.get_command() == Kettic.AspNet.Controls.SchedulerNavigationCommand.NavigateToNextPeriod)
alert("Navigating to next period"); }
</script>

<kettic:KaxScheduler ID="KaxScheduler1"
runat="server"
OnClientNavigationCommand="clientNavigationCommandHandler">
....
</kettic:KaxScheduler>

See Also