PanelBarBuilder
Defines the fluent interface for configuring the PanelBar component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class PanelBarBuilder : WidgetBuilderBase<PanelBar, PanelBarBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<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 animation.
Returns:Configures the visual animations of the PanelBar.
Controls whether to bind the PanelBar to the DataSource during its initialization.
public PanelBarBuilder BindTo(IEnumerable dataSource, Action<NavigationBindingFactory<PanelBarItem>> factoryAction)
public PanelBarBuilder BindTo(IEnumerable<PanelBarItemModel> items)
Binds the PanelBar to a sitemap.
public PanelBarBuilder BindTo(string viewDataKey, Action<PanelBarItem, SiteMapNode> siteMapAction)
The view data key.
siteMapActionAction<PanelBarItem, SiteMapNode>The action to configure the item.
Returns:Binds the PanelBar to a sitemap.
public PanelBarBuilder BindTo(string viewDataKey)
The view data key.
Returns: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:Sets the field of the data item that provides the icon content of the items.
public PanelBarBuilder DataIconClassField(string value)
The value that configures the dataiconclassfield.
Returns:Sets the field of the data item that provides the icon content of the items.
public PanelBarBuilder DataIconField(string value)
The value that configures the dataiconfield.
Returns:Sets the field of the data item that provides the image URL of the PanelBar items.
public PanelBarBuilder DataImageUrlField(string value)
The value that configures the dataimageurlfield.
Returns:Configures the DataSource of the component for remote data binding.
public PanelBarBuilder DataSource(Action<HierarchicalDataSourceBuilder<object>> configurator)
The action that configures the DataSource.
Returns:Sets the field of the data item that provides the sprite CSS class of the items.
public PanelBarBuilder DataSpriteCssClassField(string value)
The value that configures the dataspritecssclassfield.
Returns:Sets the field of the data item that provides the text content of the items.
public PanelBarBuilder DataTextField(params string[] value)
The value that configures the datatextfield.
Returns:Sets the field of the data item that provides the link URL of the items.
public PanelBarBuilder DataUrlField(string value)
The value that configures the dataurlfield.
Returns:Configures the client-side event handlers.
public PanelBarBuilder Events(Action<PanelBarEventBuilder> clientEventsAction)
The client events action.
Returns:Renders the PanelBar with expanded items.
Specifies how the PanelBar items are displayed when opened and closed.
public PanelBarBuilder ExpandMode(PanelBarExpandMode value)
The desired expand mode.
Returns:Selects the item depending on the current URL.
Defines the callback for each item.
public PanelBarBuilder ItemAction(Action<PanelBarItem> action)
Action, which will be executed for each item.
Returns:Defines the items within the PanelBar declaration.
public PanelBarBuilder Items(Action<PanelBarItemFactory> addAction)
The add action.
Returns: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.
The text messages displayed in the PanelBar. Use it to customize or localize the messages.
public PanelBarBuilder Messages(Action<PanelBarMessagesSettingsBuilder> configurator)
The action that configures the messages.
Returns:Defines the security trimming functionality of the component.
public PanelBarBuilder SecurityTrimming(Action<SecurityTrimmingBuilder> securityTrimmingAction)
The securityTrimming action.
Returns:Enables/disables the security trimming functionality of the component.
public PanelBarBuilder SecurityTrimming(bool value)
The boolean value.
Returns:Selects the item at the specified index.
Defines a template for the items rendering.
public PanelBarBuilder Template(string template)
The template content.
Returns:Defines a template for the items rendering by using client-side handler.
public PanelBarBuilder TemplateHandler(string template)
The name of the JavaScript function that will return the template content.
Returns:Specifies the "id" of the external Kendo UI template used for rendering the PanelBar items.
public PanelBarBuilder TemplateId(string templateId)
The value of the template "id".
Returns:Defines a template for the items rendering by using a partial View.
public PanelBarBuilder TemplateView(MvcHtmlString template)
The partial View name.
Returns: