PanelBar

Example

Razor
<kendo-panelbar>
    <animation></animation>
    <hierarchical-datasource></hierarchical-datasource>
    <items></items>
    <li></li>
    <messages />
</kendo-panelbar>

ChildTags

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
as-moduleBooleanSpecifies whether the initialization script of the component will be rendered as a JavaScript module.
is-in-client-templateBooleanWhen placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
auto-bindBooleanIf set to false the widget will not bind to the data source during initialization. In this case data binding will occur when the change event of the data source is fired. By default the widget will bind to the data source specified in the configuration.
bind-toIEnumerable<PanelBarItemBase>Binds a list of items to the PanelBar.
data-icon-class-fieldStringSets the field of the data item that provides the custom class for the icon element of the PanelBar nodes.
data-icon-fieldStringSets the field of the data item that provides the icon name of the PanelBar nodes.
data-image-url-fieldStringSets the field of the data item that provides the image URL of the PanelBar nodes.
data-source-idStringThe Id of the data source.
data-sprite-css-class-fieldStringSets the field of the data item that provides the sprite CSS class of the nodes. If an array, each level uses the field that is at the same index in the array, or the last item in the array.
data-text-fieldStringSets the field of the data item that provides the text content of the nodes. If an array, each level uses the field that is at the same index in the array, or the last item in the array.
data-url-fieldStringSets the field of the data item that provides the link URL of the nodes.
expand-modeStringSpecifies how the PanelBar items are displayed when opened and closed. The following values are available:
load-on-demandBooleanIndicates whether the child DataSources should be fetched lazily when parent groups get expanded. Setting this to false causes all child DataSources to be loaded at initialization time.
on-activateStringThe name of the JavaScript function that will handle the activate event. Triggered when an item of a PanelBar is activated.
on-collapseStringThe name of the JavaScript function that will handle the collapse event. Triggered when an item of a PanelBar is collapsed.
on-content-loadStringThe name of the JavaScript function that will handle the contentLoad event. Fires when content is fetched from an AJAX request.
on-data-boundStringThe name of the JavaScript function that will handle the dataBound event. Triggered after the dataSource change event has been processed (adding/removing items);
on-errorStringThe name of the JavaScript function that will handle the error event. Fires when AJAX request results in an error.
on-expandStringThe name of the JavaScript function that will handle the expand event. Triggered when an item of a PanelBar is expanded.
on-selectStringThe name of the JavaScript function that will handle the select event. Triggered when an item of a PanelBar is selected by the user.
script-attributesIDictionary<String,Object>Sets the attributes that will be added to the script tag of the component's initialization script.
templateStringTemplate for rendering each node.
template-handlerStringTemplate for rendering each node. This option expects the name of a JavaScript function that will be called to return the template.
template-idStringTemplate for rendering each node. This option expects the ID of the script element that contains the template.
template-viewIHtmlContentTemplate for rendering each node. This option expects the instance containing the created HTML.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support