ActionSheetEventBuilder
Methods
Activate(System.String)
Fired when the widget is opened.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Activate event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the activate event.
RETURNS
Returns the current instance of ActionSheetEventBuilder .
Example
@(Html.Kendo().ActionSheet()
.Name("actionsheet")
.Events(events => events
.Activate("onActivate")
)
)
Activate(System.Func)
Fired when the widget is opened.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Activate event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ActionSheetEventBuilder .
Example
@(Html.Kendo().ActionSheet()
.Name("actionsheet")
.Events(events => events
.Activate(
@<text>
function (е) {
// Handle event.
}
</text>)
)
)
Close(System.String)
Fired when the widget closes.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Close event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the close event.
RETURNS
Returns the current instance of ActionSheetEventBuilder .
Example
@(Html.Kendo().ActionSheet()
.Name("actionsheet")
.Events(events => events
.Close("onClose")
)
)
Close(System.Func)
Fired when the widget closes.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Close event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ActionSheetEventBuilder .
Example
@(Html.Kendo().ActionSheet()
.Name("actionsheet")
.Events(events => events
.Close(
@<text>
function (е) {
// Handle event.
}
</text>)
)
)
Deactivate(System.String)
Fired when the widget is closed.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Deactivate event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the deactivate event.
RETURNS
Returns the current instance of ActionSheetEventBuilder .
Example
@(Html.Kendo().ActionSheet()
.Name("actionsheet")
.Events(events => events
.Deactivate("onDeactivate")
)
)
Deactivate(System.Func)
Fired when the widget is closed.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Deactivate event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ActionSheetEventBuilder .
Example
@(Html.Kendo().ActionSheet()
.Name("actionsheet")
.Events(events => events
.Deactivate(
@<text>
function (е) {
// Handle event.
}
</text>)
)
)
Open(System.String)
Fired when the widget opens.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Open event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the open event.
RETURNS
Returns the current instance of ActionSheetEventBuilder .
Example
@(Html.Kendo().ActionSheet()
.Name("actionsheet")
.Events(events => events
.Open("onOpen")
)
)
Open(System.Func)
Fired when the widget opens.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Open event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ActionSheetEventBuilder .
Example
@(Html.Kendo().ActionSheet()
.Name("actionsheet")
.Events(events => events
.Open(
@<text>
function (е) {
// Handle event.
}
</text>)
)
)