ExpansionPanelEventBuilder
Methods
Expand(System.String)
Fired when the component is expanded.The event handler function context (available via the this keyword) will be set to the component 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)
Fired when the component is expanded.The event handler function context (available via the this keyword) will be set to the component 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)
Fired when the component is collapsed.The event handler function context (available via the this keyword) will be set to the component 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)
Fired when the component is collapsed.The event handler function context (available via the this keyword) will be set to the component 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)
Fired when the animation during collapse/expand is completed.The event handler function context (available via the this keyword) will be set to the component 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)
Fired when the animation during collapse/expand is completed.The event handler function context (available via the this keyword) will be set to the component 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>
))
)