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"))
)
Close(System.Func)
Triggered when a Dialog is closed (by a user or through the close() method).
For more information see Close event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Dialog()
.Name("Dialog")
.Visible(true)
.Content("Dialog content")
.Events(events => events.Close(
@<text>
function(e) {
//event handling code
}
</text>
))
)
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"))
)
Hide(System.Func)
Triggered when a Dialog has finished its closing animation.
For more information see Hide event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Dialog()
.Name("Dialog")
.Visible(true)
.Content("Dialog content")
.Events(events => events.Hide(
@<text>
function(e) {
//event handling code
}
</text>
))
)
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"))
)
InitOpen(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Dialog()
.Name("Dialog")
.Visible(true)
.Content("Dialog content")
.Events(events => events.InitOpen(
@<text>
function(e) {
//event handling code
}
</text>
))
)
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"))
)
Open(System.Func)
Triggered when a Dialog is opened (i.e. the open() method is called).
For more information see Open event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Dialog()
.Name("Dialog")
.Visible(true)
.Content("Dialog content")
.Events(events => events.Open(
@<text>
function(e) {
//event handling code
}
</text>
))
)
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"))
)
Show(System.Func)
Triggered when a Dialog has finished its opening animation.
For more information see Show event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Dialog()
.Name("Dialog")
.Visible(true)
.Content("Dialog content")
.Events(events => events.Show(
@<text>
function(e) {
//event handling code
}
</text>
))
)