PanelBarEventBuilder
Methods
Activate(System.String)
Defines the handler of the Activate client-side event. Triggered when an item of a PanelBar is activated.
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 PanelBarEventBuilder .
Example
@( Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events
.Activate("onActivate")
)
)
Activate(System.Func)
Defines the handler of the Activate client-side event. Triggered when an item of a PanelBar is activated.
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 PanelBarEventBuilder .
Example
@(Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events.Activate(@<text>
function(e) {
// Handle the Activate event inline.
}
</text>)
)
)
Collapse(System.String)
Defines the handler of the Collapse client-side event. Triggered when an item of a PanelBar is collapsed.
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 PanelBarEventBuilder .
Example
@( Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events
.Collapse("onCollapse")
)
)
Collapse(System.Func)
Defines the handler of the Collapse client-side event. Triggered when an item of a PanelBar is collapsed.
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 PanelBarEventBuilder .
Example
@(Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events.Collapse(@<text>
function(e) {
// Handle the Collapse event inline.
}
</text>)
)
)
ContentLoad(System.String)
Defines the handler of the ContentLoad client-side event. Fires when content is fetched from an AJAX request.
For more information see ContentLoad event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the ContentLoad event.
RETURNS
Returns the current instance of PanelBarEventBuilder .
Example
@( Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events
.ContentLoad("onContentLoad")
)
)
ContentLoad(System.Func)
Defines the handler of the ContentLoad client-side event. Fires when content is fetched from an AJAX request.
For more information see ContentLoad event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of PanelBarEventBuilder .
Example
@(Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events.ContentLoad(@<text>
function(e) {
// Handle the ContentLoad event inline.
}
</text>)
)
)
DataBound(System.String)
Defines the handler of the DataBound client-side event. Triggered 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.
RETURNS
Returns the current instance of PanelBarEventBuilder .
Example
@( Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events
.DataBound("onDataBound")
)
)
DataBound(System.Func)
Defines the handler of the DataBound client-side event. Triggered after the dataSource change event has been processed (adding/removing items);
For more information see DataBound event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of PanelBarEventBuilder .
Example
@(Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events.DataBound(@<text>
function(e) {
// Handle the DataBound event inline.
}
</text>)
)
)
Error(System.String)
Defines the handler of the Error client-side event. Fires when AJAX request results in an error.
For more information see Error event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Error event.
RETURNS
Returns the current instance of PanelBarEventBuilder .
Example
@( Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events
.Error("onError")
)
)
Error(System.Func)
Defines the handler of the Error client-side event. Fires when AJAX request results in an error.
For more information see Error event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of PanelBarEventBuilder .
Example
@(Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events.Error(@<text>
function(e) {
// Handle the Error event inline.
}
</text>)
)
)
Expand(System.String)
Defines the handler of the Expand client-side event. Triggered when an item of a PanelBar is expanded.
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 PanelBarEventBuilder .
Example
@( Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events
.Expand("onExpand")
)
)
Expand(System.Func)
Defines the handler of the Expand client-side event. Triggered when an item of a PanelBar is expanded.
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 PanelBarEventBuilder .
Example
@(Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events.Expand(@<text>
function(e) {
// Handle the Expand event inline.
}
</text>)
)
)
Select(System.String)
Defines the handler of the Select client-side event. Triggered when an item of a 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 Select event.
RETURNS
Returns the current instance of PanelBarEventBuilder .
Example
@( Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events
.Select("onSelect")
)
)
Select(System.Func)
Defines the handler of the Select client-side event. Triggered when an item of a 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.
RETURNS
Returns the current instance of PanelBarEventBuilder .
Example
@(Html.Kendo().PanelBar()
.Name("panelbar")
.Events(events => events.Select(@<text>
function(e) {
// Handle the Select event inline.
}
</text>)
)
)
KendoKeydown(System.String)
Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the PanelBar is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see KendoKeydown event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the KendoKeydown event.
RETURNS
Returns the current instance of PanelBarEventBuilder .
KendoKeydown(System.Func)
Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the PanelBar is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see KendoKeydown event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of PanelBarEventBuilder .