New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

The fluent API for subscribing to Telerik UI for ASP.NET MVC TimezoneEditor events.

Definition

Constructors

Initializes a new instance of the TimezoneEditorEventBuilder class.

C#
public TimezoneEditorEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

The events.

Methods

Defines the handler of the Change client-side event. Fires when the value of the editor has changed.

C#
public TimezoneEditorEventBuilder Change(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag (Razor syntax).

Returns:

TimezoneEditorEventBuilder

Example:
C#
@(Html.Kendo().TimezoneEditor()
.Name("timeZoneEditor")
.Events(events =&gt; events.Change(@&lt;text&gt;
function(e) {
// Handle the Change event inline.
}
&lt;/text&gt;)
)
)

Defines the handler of the Change client-side event. Fires when the value of the editor has changed.

C#
public TimezoneEditorEventBuilder Change(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the event.

Returns:

TimezoneEditorEventBuilder

Example:
C#
@(Html.Kendo().TimezoneEditor()
.Name("timeZoneEditor")
.Events(events =&gt; events.Change("onChange"))
)