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

Defines the fluent API for configuring the Kendo Form for ASP.NET MVC events.

Definition

Constructors

Initializes a new instance of the Form class.

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

The client events.

Example:
C#
@( Html.Kendo().Form()
.Name("Form")
.Events(events =&gt; events
.Validate(
function(event){
/*handle event*/
}
)
)
)

Methods

Defines the handler of the Change client-side event. Triggered when the form model is updated.

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

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

Returns:

FormEventBuilder

Defines the handler of the Clear client-side event. Triggered when the form is cleared.

C#
public FormEventBuilder Clear(string handler)
Parameters:handlerstring

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

Returns:

FormEventBuilder

Defines the handler of the Submit client-side event. Triggered when the form is submitted.

C#
public FormEventBuilder Submit(string handler)
Parameters:handlerstring

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

Returns:

FormEventBuilder

Defines the handler of the Validate client-side event. Fired when the validation of the entire form completes.

C#
public FormEventBuilder Validate(string handler)
Parameters:handlerstring

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

Returns:

FormEventBuilder

Defines the handler of the ValidateField client-side event. Fired when the validation state of a field changes.

C#
public FormEventBuilder ValidateField(string handler)
Parameters:handlerstring

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

Returns:

FormEventBuilder