ExpansionPanelEventBuilder
Methods
Expand(System.String)
Defines the handler of the Expand client-side event. Fired when the widget is expanded.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Expand event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Expand event.
RETURNS
Returns the current instance of ExpansionPanelEventBuilder .
Example
@(Html.Kendo().ExpansionPanel()
.Name("expansionPanel")
.Events(events => events.Expand("onExpand"))
)
Expand(System.Func)
Defines the handler of the Expand client-side event. Fired when the widget is expanded.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Expand event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ExpansionPanelEventBuilder .
Example
@(Html.Kendo().ExpansionPanel()
.Name("expansionPanel")
.Events(events => events.Expand(
@<text>
function(e){
// Handle event.
}
</text>
))
)
Collapse(System.String)
Defines the handler of the Collapse client-side event. Fired when the widget is collapsed.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Collapse event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Collapse event.
RETURNS
Returns the current instance of ExpansionPanelEventBuilder .
Example
@(Html.Kendo().ExpansionPanel()
.Name("expansionPanel")
.Events(events => events.Collapse("onCollapse"))
)
Collapse(System.Func)
Defines the handler of the Collapse client-side event. Fired when the widget is collapsed.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Collapse event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ExpansionPanelEventBuilder .
Example
@(Html.Kendo().ExpansionPanel()
.Name("expansionPanel")
.Events(events => events.Collapse(
@<text>
function(e){
// Handle event.
}
</text>
))
)
Complete(System.String)
Defines the handler of the Complete client-side event. Fired when the animation during collapse/expand is completed.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Complete event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Complete event.
RETURNS
Returns the current instance of ExpansionPanelEventBuilder .
Example
@(Html.Kendo().ExpansionPanel()
.Name("expansionPanel")
.Events(events => events.Complete("onCollapse"))
)
Complete(System.Func)
Defines the handler of the Complete client-side event. Fired when the animation during collapse/expand is completed.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Complete event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of ExpansionPanelEventBuilder .
Example
@(Html.Kendo().ExpansionPanel()
.Name("expansionPanel")
.Events(events => events.Complete(
@<text>
function(e){
// Handle event.
}
</text>
))
)