New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring DockManagerRootPaneSettingsPane

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class DockManagerRootPaneSettingsPaneBuilder

Inheritance: objectDockManagerRootPaneSettingsPaneBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

DockManagerRootPaneSettingsPaneBuilder method.

C#
public DockManagerRootPaneSettingsPaneBuilder(DockManagerRootPaneSettingsPane container)
Parameters:containerDockManagerRootPaneSettingsPane

Properties

Gets the settings being configured.

C#
protected DockManagerRootPaneSettingsPane Container { get; }

Methods

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

C#
public DockManagerRootPaneSettingsPaneBuilder Closeable(bool value)
Parameters:valuebool

The value for Closeable

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current DockManagerRootPaneSettingsPaneBuilder instance.

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

C#
public DockManagerRootPaneSettingsPaneBuilder Content(string value)
Parameters:valuestring

The value for Content

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current DockManagerRootPaneSettingsPaneBuilder instance.

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

C#
public DockManagerRootPaneSettingsPaneBuilder ContentHandler(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current DockManagerRootPaneSettingsPaneBuilder instance.

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

C#
public DockManagerRootPaneSettingsPaneBuilder ContentHandler(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current DockManagerRootPaneSettingsPaneBuilder instance.

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

C#
public DockManagerRootPaneSettingsPaneBuilder ContentTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the pane's content.

Returns:

DockManagerRootPaneSettingsPaneBuilder

A DockManagerRootPaneSettingsPaneBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().DockManager()
.Name("dockManager")
.RootPane(root =&gt;
{
root.Id("root").Type(RootPaneType.Split).Orientation(DockSplitterOrientation.Vertical).Panes(panes =&gt;
{
panes.Add().Type(PaneType.Content).Title("Console")
.ContentTemplate(Html.Kendo().Template().AddHtml("&lt;span&gt;Console content&lt;/span&gt;"))
.Id("console");
});
})
)

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

C#
public DockManagerRootPaneSettingsPaneBuilder ContentView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The Razor View that contains the content of the pane.

Returns:

DockManagerRootPaneSettingsPaneBuilder

A DockManagerRootPaneSettingsPaneBuilder instance for method chaining.

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

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.

C#
public DockManagerRootPaneSettingsPaneBuilder Dockable(Action<DockManagerRootPanePaneDockableSettingsBuilder> configurator)
Parameters:configuratorAction<DockManagerRootPanePaneDockableSettingsBuilder>

The DockManagerRootPanePaneDockableSettingsBuilder for the dockable setting.

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current instance of DockManagerRootPaneSettingsPaneBuilder .

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.

C#
public DockManagerRootPaneSettingsPaneBuilder Dockable(bool enabled)
Parameters:enabledbool

Enables or disables the dockable option.

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current instance of DockManagerRootPanePaneDockableSettingsBuilder .

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.

C#
public DockManagerRootPaneSettingsPaneBuilder Header(string value)
Parameters:valuestring

The value for Header

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current DockManagerRootPaneSettingsPaneBuilder instance.

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.

C#
public DockManagerRootPaneSettingsPaneBuilder HeaderHandler(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current DockManagerRootPaneSettingsPaneBuilder instance.

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.

C#
public DockManagerRootPaneSettingsPaneBuilder HeaderHandler(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current DockManagerRootPaneSettingsPaneBuilder instance.

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".

C#
public DockManagerRootPaneSettingsPaneBuilder HeaderTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the header content.

Returns:

DockManagerRootPaneSettingsPaneBuilder

A DockManagerRootPaneSettingsPaneBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().DockManager()
.Name("dockManager")
.RootPane(root =&gt;
{
root.Id("root").Type(RootPaneType.Split).Orientation(DockSplitterOrientation.Vertical).Panes(panes =&gt;
{
panes.Add().Type(PaneType.Content).Title("Console")
.HeaderTemplate(Html.Kendo().Template().AddHtml("&lt;span&gt;PaneHeader&lt;/span&gt;"))
.Content("Console content")
.Id("console");
});
})
)

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".

C#
public DockManagerRootPaneSettingsPaneBuilder HeaderView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The Razor View that contains the content of the header.

Returns:

DockManagerRootPaneSettingsPaneBuilder

A DockManagerRootPaneSettingsPaneBuilder instance for method chaining.

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

Defines the id of the pane

C#
public DockManagerRootPaneSettingsPaneBuilder Id(string value)
Parameters:valuestring

The value for Id

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current DockManagerRootPaneSettingsPaneBuilder instance.

Sets the orientation of the pane splitter.

C#
public DockManagerRootPaneSettingsPaneBuilder Orientation(DockSplitterOrientation value)
Parameters:valueDockSplitterOrientation

The value for Orientation

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current DockManagerRootPaneSettingsPaneBuilder instance.

An array of pane definitions.

C#
public DockManagerRootPaneSettingsPaneBuilder Panes(Action<DockManagerRootPaneSettingsPaneFactory> configurator)
Parameters:configuratorAction<DockManagerRootPaneSettingsPaneFactory>

The configurator for the panes setting.

Returns:

DockManagerRootPaneSettingsPaneBuilder

A DockManagerRootPaneSettingsPaneBuilder instance for method chaining.

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

C#
public DockManagerRootPaneSettingsPaneBuilder Selected(double value)
Parameters:valuedouble

The value for Selected

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current DockManagerRootPaneSettingsPaneBuilder instance.

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

C#
public DockManagerRootPaneSettingsPaneBuilder Size(string value)
Parameters:valuestring

The value for Size

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current DockManagerRootPaneSettingsPaneBuilder instance.

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.

C#
public DockManagerRootPaneSettingsPaneBuilder TabHeader(string value)
Parameters:valuestring

The value for TabHeader

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current DockManagerRootPaneSettingsPaneBuilder instance.

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.

C#
public DockManagerRootPaneSettingsPaneBuilder TabHeaderHandler(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current DockManagerRootPaneSettingsPaneBuilder instance.

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.

C#
public DockManagerRootPaneSettingsPaneBuilder TabHeaderHandler(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current DockManagerRootPaneSettingsPaneBuilder instance.

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".

C#
public DockManagerRootPaneSettingsPaneBuilder TabHeaderTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the content of the tab header.

Returns:

DockManagerRootPaneSettingsPaneBuilder

A DockManagerRootPaneSettingsPaneBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().DockManager()
.Name("dockManager")
.RootPane(root =&gt;
{
root.Id("root").Type(RootPaneType.Split).Orientation(DockSplitterOrientation.Vertical).Panes(panes =&gt;
{
panes.Add().Type(PaneType.Content).Title("Console")
.TabHeaderTemplate(Html.Kendo().Template().AddHtml("&lt;span&gt;PaneHeader&lt;/span&gt;"))
.Content("Console content")
.Id("console");
});
})
)

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".

C#
public DockManagerRootPaneSettingsPaneBuilder TabHeaderView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

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

Returns:

DockManagerRootPaneSettingsPaneBuilder

A DockManagerRootPaneSettingsPaneBuilder instance for method chaining.

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

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

C#
public DockManagerRootPaneSettingsPaneBuilder Title(string value)
Parameters:valuestring

The value for Title

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current DockManagerRootPaneSettingsPaneBuilder instance.

Sets the type of the pane.

C#
public DockManagerRootPaneSettingsPaneBuilder Type(PaneType value)
Parameters:valuePaneType

The value for Type

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current DockManagerRootPaneSettingsPaneBuilder instance.

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

C#
public DockManagerRootPaneSettingsPaneBuilder Unpinnable(Action<DockManagerRootPanePaneUnpinnableSettingsBuilder> configurator)
Parameters:configuratorAction<DockManagerRootPanePaneUnpinnableSettingsBuilder>

The DockManagerRootPanePaneUnpinnableSettingsBuilder for the unpinnable setting.

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current instance of DockManagerRootPaneSettingsPaneBuilder .

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

C#
public DockManagerRootPaneSettingsPaneBuilder Unpinnable(bool enabled)
Parameters:enabledbool

Enables or disables the unpinnable option.

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current instance of DockManagerRootPanePaneUnpinnableSettingsBuilder .

Specifies if the pane is initially visible.

C#
public DockManagerRootPaneSettingsPaneBuilder Visible(bool value)
Parameters:valuebool

The value for Visible

Returns:

DockManagerRootPaneSettingsPaneBuilder

Returns the current DockManagerRootPaneSettingsPaneBuilder instance.