PanelBarBuilder
Defines the fluent API for configuring the Kendo UI PanelBar
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class PanelBarBuilder : WidgetBuilderBase<PanelBar, PanelBarBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<PanelBar, PanelBarBuilder>PanelBarBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the PanelBarBuilder class.
Methods
Configures the visual animations of the PanelBar.
public PanelBarBuilder Animation(Action<ExpandableAnimationBuilder> animationAction)
The action that configures the animations.
Returns:Returns the current PanelBarBuilder instance.
Configures the visual animations of the PanelBar.
public PanelBarBuilder Animation(bool enable)
The boolean value.
Returns:Returns the current PanelBarBuilder instance.
If 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.
public PanelBarBuilder AutoBind(bool value)
The value for AutoBind
Returns:Returns the current PanelBarBuilder instance.
Binds the PanelBar to a list of objects and map the Model properties to the PanelBarItem properties.
public PanelBarBuilder BindTo(IEnumerable dataSource, Action<NavigationBindingFactory<PanelBarItem>> factoryAction)
The IEnumerable collection of Model.
factoryActionAction<NavigationBindingFactory<PanelBarItem>>The action which will configure the mappings.
Returns:Returns the current PanelBarBuilder instance.
Binds the PanelBar to local data. To bind the PanelBar declaratively, use the Items() method.
public PanelBarBuilder BindTo(IEnumerable<PanelBarItemModel> items)
The IEnumerable of PanelBarItemModel items.
Returns:Returns the current PanelBarBuilder instance.
Binds the PanelBar to a list of objects. The PanelBar will be "flat", which means a PanelBar item will be created for every item in the data source.
public PanelBarBuilder BindTo<T>(IEnumerable<T> dataSource, Action<PanelBarItem, T> itemDataBound)
The data source.
itemDataBoundAction<PanelBarItem, T>The action executed for every data bound item.
Returns:Returns the current PanelBarBuilder instance.
Sets the field of the data item that provides the custom class for the icon element of the PanelBar nodes.
public PanelBarBuilder DataIconClassField(string value)
The value for DataIconClassField
Returns:Returns the current PanelBarBuilder instance.
Sets the field of the data item that provides the icon name of the PanelBar nodes.
public PanelBarBuilder DataIconField(string value)
The value for DataIconField
Returns:Returns the current PanelBarBuilder instance.
Sets the field of the data item that provides the image URL of the PanelBar nodes.
public PanelBarBuilder DataImageUrlField(string value)
The value for DataImageUrlField
Returns:Returns the current PanelBarBuilder instance.
Configures the DataSource of the component for remote data binding.
public PanelBarBuilder DataSource(Action<HierarchicalDataSourceBuilder<object>> configurator)
The HierarchicalDataSourceBuilder<TModel> that configures the DataSource of the component.
Returns:Returns the current PanelBarBuilder instance.
Specifies the ID of an existing DataSource component that will be used for data binding.
public PanelBarBuilder DataSource(string dataSourceId)
The name of the DataSource.
Returns:Returns the current PanelBarBuilder instance.
Sets 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.
public PanelBarBuilder DataSpriteCssClassField(string value)
The value for DataSpriteCssClassField
Returns:Returns the current PanelBarBuilder instance.
Sets 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.
public PanelBarBuilder DataTextField(params string[] value)
The value for DataTextField
Returns:Returns the current PanelBarBuilder instance.
Sets the field of the data item that provides the link URL of the nodes.
public PanelBarBuilder DataUrlField(string value)
The value for DataUrlField
Returns:Returns the current PanelBarBuilder instance.
Configures the client-side events.
public PanelBarBuilder Events(Action<PanelBarEventBuilder> configurator)
The client events action.
Returns:Returns the current PanelBarBuilder instance.
Renders the PanelBar with expanded items.
public PanelBarBuilder ExpandAll(bool value)
The boolean value.
Returns:Returns the current PanelBarBuilder instance.
Specifies how the PanelBar items are displayed when opened and closed.
public PanelBarBuilder ExpandMode(PanelBarExpandMode value)
The value for ExpandMode
Returns:Returns the current PanelBarBuilder instance.
Selects the item depending on the current URL.
public PanelBarBuilder HighlightPath(bool value)
The boolean value.
Returns:Returns the current PanelBarBuilder instance.
Defines the callback for each item.
public PanelBarBuilder ItemAction(Action<PanelBarItem> action)
Action, which will be executed for each item.
Returns:Returns the current PanelBarBuilder instance.
Defines the items within the PanelBar declaration.
public PanelBarBuilder Items(Action<PanelBarItemFactory> addAction)
The add action.
Returns:Returns the current PanelBarBuilder instance.
Indicates 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.
public PanelBarBuilder LoadOnDemand(bool value)
The value for LoadOnDemand
Returns:Returns the current PanelBarBuilder instance.
The text messages displayed in the widget. Use it to customize or localize the messages.
public PanelBarBuilder Messages(Action<PanelBarMessagesSettingsBuilder> configurator)
The PanelBarMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of PanelBarBuilder .
Selects the item at the specified index.
public PanelBarBuilder SelectedIndex(int index)
The index.
Returns:Returns the current PanelBarBuilder instance.
Template for rendering each node.
public PanelBarBuilder Template(string value)
The value for Template
Returns:Returns the current PanelBarBuilder instance.
Template for rendering each node.
public PanelBarBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Returns the current PanelBarBuilder instance.
Template for rendering each node.
public PanelBarBuilder TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:Returns the current PanelBarBuilder instance.
Template for rendering each node.
public PanelBarBuilder TemplateId(string templateId)
The ID of the template element for Template
Returns:Returns the current PanelBarBuilder instance.
Template for rendering each node.
public PanelBarBuilder TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:Returns the current PanelBarBuilder instance.