PanelBarEventBuilder
Methods
Expand(System.Func)
Defines the handler of the Expand client-side event. Fires when an item of the PanelBar is expanded.
For more information see Expand event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@(Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events.Expand(@<text>
function(e) {
// Handle the Expand event inline.
}
</text>)
)
)
Expand(System.String)
Defines the handler of the Expand client-side event. Fires when an item of the PanelBar is expanded.
For more information see Expand event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().PanelBar()
.Name("PanelBar")
.Events(events => events.Expand("expand"))
)
ContentLoad(System.Func)
Defines the handler of the ContentLoad client-side event. Fires when the content is fetched through an AJAX request.
For more information see ContentLoad event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@(Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events.ContentLoad(@<text>
function(e) {
// Handle the ContentLoad event inline.
}
</text>)
)
)
ContentLoad(System.String)
Defines the handler of the ContentLoad client-side event. Fires when the content is fetched through an AJAX request.
For more information see ContentLoad event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().PanelBar()
.Name("PanelBar")
.Events(events => events.ContentLoad("contentLoad"))
)
DataBound(System.Func)
Defines the handler of the DataBound client-side event. Fires after the DataSource Change event has been processed (adding/removing items).
For more information see DataBound event.
Parameters
onDataBoundAction - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@(Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events.DataBound(@<text>
function(e) {
// Handle the DataBound event inline.
}
</text>)
)
)
DataBound(System.String)
Defines the handler of the DataBound client-side event. Fires after the DataSource Change event has been processed (adding/removing items).
For more information see DataBound event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the dataBound event.
Example
@( Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events
.DataBound("onDataBound")
)
)
Activate(System.Func)
Defines the handler of the Activate client-side event. Fires when the an item of the PanelBar is activated.
For more information see Activate event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@(Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events.Activate(@<text>
function(e) {
// Handle the Activate event inline.
}
</text>)
)
)
Activate(System.String)
Defines the handler of the Activate client-side event. Fires when the an item of the PanelBar is activated.
For more information see Activate event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events
.Activate("onActivate")
)
)
Collapse(System.Func)
Defines the handler of the Collapse client-side event. Fires when the an item of the PanelBar is collapsed.
For more information see Collapse event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@(Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events.Collapse(@<text>
function(e) {
// Handle the Collapse event inline.
}
</text>)
)
)
Collapse(System.String)
Defines the handler of the Collapse client-side event. Fires when the an item of the PanelBar is collapsed.
For more information see Collapse event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().PanelBar()
.Name("PanelBar")
.Events(events => events.Collapse("collapse"))
)
Select(System.Func)
Defines the handler of the Select client-side event. Fires when an item of the PanelBar is selected by the user.
For more information see Select event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@(Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events.Select(@<text>
function(e) {
// Handle the Select event inline.
}
</text>)
)
)
Select(System.String)
Defines the handler of the Select client-side event. Fires when an item of the PanelBar is selected by the user.
For more information see Select event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().PanelBar()
.Name("PanelBar")
.Events(events => events.Select("select"))
)
Error(System.Func)
Defines the handler of the Error client-side event. Fires when the AJAX request results in an error. Note: This event will not fire when using jQuery v3.x.
For more information see Error event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@(Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events.Error(@<text>
function(e) {
// Handle the Error event inline.
}
</text>)
)
)
Error(System.String)
Defines the handler of the Error client-side event. Fires when the AJAX request results in an error. Note: This event will not fire when using jQuery v3.x.
For more information see Error event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the event.
Example
@( Html.Kendo().PanelBar()
.Name("PanelBar")
.Events(events => events.Error("onError"))
)