FormEventBuilder
Methods
Validate(System.String)
Fired when the validation of the entire form completes.
For more information see Validate event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the validate event.
Example
@( Html.Kendo().Form()
.Name("Form")
.Events(events => events
.Validate("onValidate")
)
)
Validate(System.Func)
Fired when the validation of the entire form completes.
For more information see Validate event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
)
)
)
ValidateField(System.String)
Fired when the validation state of a field changes.
For more information see ValidateField event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the validateField event.
Example
@( Html.Kendo().Form()
.Name("Form")
.Events(events => events
.ValidateField("onValidateField")
)
)
ValidateField(System.Func)
Fired when the validation state of a field changes.
For more information see ValidateField event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
)
)
)
Change(System.String)
Triggered when the form model is updated.
For more information see Change event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the change event.
Example
@( Html.Kendo().Form()
.Name("Form")
.Events(events => events
.Change("onChange")
)
)
Change(System.Func)
Triggered when the form model is updated.
For more information see Change event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
)
)
)
Submit(System.String)
Triggered when the form is submitted.
For more information see Submit event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the submit event.
Example
@( Html.Kendo().Form()
.Name("Form")
.Events(events => events
.Submit("onSubmit")
)
)
Submit(System.Func)
Triggered when the form is submitted.
For more information see Submit event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
)
)
)
Clear(System.String)
Triggered when the form is cleared.
For more information see Clear event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the clear event.
Example
@( Html.Kendo().Form()
.Name("Form")
.Events(events => events
.Clear("onClear")
)
)
Clear(System.Func)
Triggered when the form is cleared.
For more information see Clear event.
Parameters
handler - System.Func<Object,Object>
The name of the JavaScript function that will handle the clear event.
Example
)
)
)