DialogEventBuilder
Methods
Close(System.String)
Triggered when a Dialog is closed (by a user or through the close() method).
For more information see Close event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the close event.
Example
@(Html.Kendo().Dialog()
.Name("Dialog")
.Visible(true)
.Content("Dialog content")
.Events(events => events.Close("onClose"))
)
Hide(System.String)
Triggered when a Dialog has finished its closing animation.
For more information see Hide event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the hide event.
Example
@(Html.Kendo().Dialog()
.Name("Dialog")
.Visible(true)
.Content("Dialog content")
.Events(events => events.Hide("onHide"))
)
InitOpen(System.String)
Triggered when a Dialog is opened for the first time (i.e. the open() method is called).
For more information see InitOpen event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the initOpen event.
Example
@(Html.Kendo().Dialog()
.Name("Dialog")
.Visible(true)
.Content("Dialog content")
.Events(events => events.InitOpen("onInitOpen"))
)
Open(System.String)
Triggered when a Dialog is opened (i.e. the open() method is called).
For more information see Open event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the open event.
Example
@(Html.Kendo().Dialog()
.Name("Dialog")
.Visible(true)
.Content("Dialog content")
.Events(events => events.Open("onOpen"))
)
Show(System.String)
Triggered when a Dialog has finished its opening animation.
For more information see Show event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the show event.
Example
@(Html.Kendo().Dialog()
.Name("Dialog")
.Visible(true)
.Content("Dialog content")
.Events(events => events.Show("onShow"))
)