DockManagerRootPaneSettingsPaneBuilder

Methods

Panes(System.Action)

An array of pane definitions.

Parameters

configurator - System.Action<DockManagerRootPaneSettingsPaneFactory>

The action that configures the panes.

Closeable(System.Boolean)

Specifies if the pane can be closed. Available only for panes of type content.

Parameters

value - System.Boolean

The value that configures the closeable.

Content(System.String)

The content of the pane. Available only for panes of type content.

Parameters

value - System.String

The value that configures the content.

Dockable(System.Boolean)

Specifies if the pane can be docked and allow inner docking of other panes. Accepts boolean or object. Available only for panes of type content.

Parameters

enabled - System.Boolean

Enables or disables the dockable option.

Dockable(System.Action)

Specifies if the pane can be docked and allow inner docking of other panes. Accepts boolean or object. Available only for panes of type content.

Parameters

configurator - System.Action<DockManagerRootPanePaneDockableSettingsBuilder>

The action that configures the dockable.

Header(System.String)

Sets the content of the header. Accepts a string or a kendo template. By default, the same content is displayed in the tab when the pane is unpinned or within a pane of type tab. If not specified the title is displayed. Available only for panes of type content.

Parameters

value - System.String

The value that configures the header.

Id(System.String)

Defines the id of the pane

Parameters

value - System.String

The value that configures the id.

Selected(System.Double)

Specifies the index of the initially selected tab. Available only for panes of type tab.

Parameters

value - System.Double

The value that configures the selected.

Size(System.String)

Specifies the size of a pane defined as pixels (i.e. "200px") or as a percentage (i.e. "50%").

Parameters

value - System.String

The value that configures the size.

TabHeader(System.String)

Sets the content of the tab when the pane is unpinned or within a tab pane. If not specified, header content is used. Available only for panes of type content.

Parameters

value - System.String

The value that configures the tab's header.

Title(System.String)

Sets the title of the pane. Available only for panes of type content.

Parameters

value - System.String

The value that configures the title.

Unpinnable(System.Boolean)

Specifies if the pane can be pinned/unpinnned. Available only for panes of type content.

Parameters

enabled - System.Boolean

Enables or disables the unpinnable option.

Unpinnable(System.Action)

Specifies if the pane can be pinned/unpinnned. Available only for panes of type content.

Parameters

configurator - System.Action<DockManagerRootPanePaneUnpinnableSettingsBuilder>

The action that configures the unpinnable.

Visible(System.Boolean)

Specifies if the pane is initially visible.

Parameters

value - System.Boolean

The value that configures the visible.

Orientation(Kendo.Mvc.UI.DockSplitterOrientation)

Sets the orientation of the pane splitter.

Parameters

value - DockSplitterOrientation

The value that configures the orientation.

Type(Kendo.Mvc.UI.PaneType)

Sets the type of the pane.

Parameters

value - PaneType

The value that configures the type.

ContentHandler(System.String)

Defines the content of the pane. The option is available only for panes of type "Content".

Parameters

value - System.String

The JavaScript function that returns the content of the pane.

Example

Razor
 
            @(Html.Kendo().DockManager()
               .Name("dockManager")
               .RootPane(root =>
               {
                   root.Id("root").Type(RootPaneType.Split).Orientation(DockSplitterOrientation.Vertical).Panes(panes =>
                   {
                       panes.Add().Type(PaneType.Content).Title("Console")
                            .ContentHandler("getPaneContent")
                            .Id("console");
                   });
               })
            )
             

ContentTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)

Defines the content of the pane. The option is available only for panes of type "Content".

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the pane's content.

Example

Razor
 
            @(Html.Kendo().DockManager()
               .Name("dockManager")
               .RootPane(root =>
               {
                   root.Id("root").Type(RootPaneType.Split).Orientation(DockSplitterOrientation.Vertical).Panes(panes =>
                   {
                       panes.Add().Type(PaneType.Content).Title("Console")
                            .ContentTemplate(Html.Kendo().Template().AddHtml("<span>Console content</span>"))
                            .Id("console");
                   });
               })
            )
             

ContentView(System.Web.Mvc.MvcHtmlString)

Defines the content of the pane. The option is available only for panes of type "Content".

Parameters

templateView - System.Web.Mvc.MvcHtmlString

The Razor View that contains the content of the pane.

Example

Razor
 
            @(Html.Kendo().DockManager()
               .Name("dockManager")
               .RootPane(root =>
               {
                   root.Id("root").Type(RootPaneType.Split).Orientation(DockSplitterOrientation.Vertical).Panes(panes =>
                   {
                       panes.Add().Type(PaneType.Content).Title("Console")
                            .ContentView(Html.Partial("ConsolePaneView"))
                            .Id("console");
                   });
               })
            )
             

HeaderHandler(System.String)

The content of the pane's header. Available only for panes of type "Content".

Parameters

value - System.String

The JavaScript function that returns the content of the header.

Example

Razor
 
            @(Html.Kendo().DockManager()
               .Name("dockManager")
               .RootPane(root =>
               {
                   root.Id("root").Type(RootPaneType.Split).Orientation(DockSplitterOrientation.Vertical).Panes(panes =>
                   {
                       panes.Add().Type(PaneType.Content).Title("Console")
                            .HeaderHandler("paneHeader")
                            .Content("Console content")
                            .Id("console");
                   });
               })
            )
             

HeaderTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)

Defines the template that will render the content of the pane's header. The option is available only for panes of type "Content".

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the header's content template.

Example

Razor
 
            @(Html.Kendo().DockManager()
               .Name("dockManager")
               .RootPane(root =>
               {
                   root.Id("root").Type(RootPaneType.Split).Orientation(DockSplitterOrientation.Vertical).Panes(panes =>
                   {
                       panes.Add().Type(PaneType.Content).Title("Console")
                            .HeaderTemplate(Html.Kendo().Template().AddHtml("<span>PaneHeader</span>"))
                            .Content("Console content")
                            .Id("console");
                   });
               })
            )
             

HeaderView(System.Web.Mvc.MvcHtmlString)

Defines the template that will render the content of the header. By default, the same content is displayed in the tab when the pane is unpinned or within a pane of type tab. If the header is not specified, the Title will be displayed. The HeaderTemplate is available only for panes of type "Content".

Parameters

templateView - System.Web.Mvc.MvcHtmlString

The Razor View that contains the content of the header.

Example

Razor
 
            @(Html.Kendo().DockManager()
               .Name("dockManager")
               .RootPane(root =>
               {
                   root.Id("root").Type(RootPaneType.Split).Orientation(DockSplitterOrientation.Vertical).Panes(panes =>
                   {
                       panes.Add().Type(PaneType.Content).Title("Console")
                            .HeaderView(Html.Partial("HeaderView"))
                            .Content("Console content")
                            .Id("console");
                   });
               })
            )
             

TabHeaderHandler(System.String)

Sets the content of the tab when the pane is unpinned or within a tab pane. If not specified, header content is used. Available only for panes of type "Content".

Parameters

value - System.String

The JavaScript function that returns the content of the tab.

Example

Razor
 
            @(Html.Kendo().DockManager()
               .Name("dockManager")
               .RootPane(root =>
               {
                   root.Id("root").Type(RootPaneType.Split).Orientation(DockSplitterOrientation.Vertical).Panes(panes =>
                   {
                       panes.Add().Type(PaneType.Content).Title("Console")
                            .TabHeaderHandler("tabHeaderTemplate")
                            .Content("Console content")
                            .Id("console");
                   });
               })
            )
             

TabHeaderTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)

Defines the template that will render the content of the tab when the pane is unpinned or within a tab pane. If not specified, header content is used. Available only for panes of type "Content".

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the tab's content.

Example

Razor
 
            @(Html.Kendo().DockManager()
               .Name("dockManager")
               .RootPane(root =>
               {
                   root.Id("root").Type(RootPaneType.Split).Orientation(DockSplitterOrientation.Vertical).Panes(panes =>
                   {
                       panes.Add().Type(PaneType.Content).Title("Console")
                            .TabHeaderTemplate(Html.Kendo().Template().AddHtml("<span>TabPane</span>"))
                            .Content("Console content")
                            .Id("console");
                   });
               })
            )
             

TabHeaderView(System.Web.Mvc.MvcHtmlString)

Defines the template that will render the content of the tab header when the pane is unpinned or within a tab pane. If the tab header is not specified, the header's content will be displayed. The TabHeaderTemplate is available only for panes of type "Content".

Parameters

templateView - System.Web.Mvc.MvcHtmlString

The Razor View that contains the content of the tab header.

Example

Razor
 
            @(Html.Kendo().DockManager()
               .Name("dockManager")
               .RootPane(root =>
               {
                   root.Id("root").Type(RootPaneType.Split).Orientation(DockSplitterOrientation.Vertical).Panes(panes =>
                   {
                       panes.Add().Type(PaneType.Content).Title("Console")
                            .TabHeaderView(Html.Partial("TabHeaderView"))
                            .Content("Console content")
                            .Id("console");
                   });
               })
            )