Kendo.Mvc.UI.Fluent.SplitterPaneBuilder
Defines the fluent API for configuring SplitterPane
Methods
MinSize(System.String)
Sets the minimum pane size.
Parameters
size System.String
The desired minimum size. Only sizes in pixels and percentages are allowed.
Example (ASPX)
<%= Html.Kendo().Splitter()
.Name("Splitter")
.Panes(panes =>
{
panes.Add().MinSize("220px");
})
%>
MaxSize(System.String)
Sets the maximum pane size.
Parameters
size System.String
The desired maximum size. Only sizes in pixels and percentages are allowed.
Example (ASPX)
<%= Html.Kendo().Splitter()
.Name("Splitter")
.Panes(panes =>
{
panes.Add().MaxSize("220px");
})
%>
HtmlAttributes(System.Object)
Sets the HTML attributes applied to the outer HTML element rendered for the item
Parameters
attributes System.Object
The attributes.
Example (ASPX)
<%= Html.Kendo().Splitter()
.Name("Splitter")
.Panes(panes =>
{
panes.Add().HtmlAttributes(new { style = "background: red" });
})
%>
HtmlAttributes(System.Collections.Generic.IDictionary<System.String,System.Object>)
Sets the HTML attributes applied to the outer HTML element rendered for the item
Parameters
attributes System.Collections.Generic.IDictionary<System.String,System.Object>
The attributes.
Content(System.Action)
Sets the HTML content of the pane.
Parameters
content System.Action
The action which renders the HTML content.
Content(System.Func<System.Object,System.Object>)
Sets the HTML content of the pane.
Parameters
content System.Func<System.Object,System.Object>
The Razor template for the HTML content.
Content(System.String)
Sets the HTML content of the pane.
Parameters
content System.String
The HTML content.
LoadContentFrom(Microsoft.AspNetCore.Routing.RouteValueDictionary)
Sets the Url which will be requested to return the pane content.
Parameters
routeValues Microsoft.AspNetCore.Routing.RouteValueDictionary
The route values of the Action method.
Example (ASPX)
<%= Html.Kendo().Splitter()
.Name("Splitter")
.Panes(panes => {
panes.Add()
.LoadContentFrom(MVC.Home.Index().GetRouteValueDictionary());
})
%>
LoadContentFrom(System.String,System.String)
Sets the Url, which will be requested to return the pane content.
Parameters
actionName System.String
The action name.
controllerName System.String
The controller name.
Example (ASPX)
<%= Html.Kendo().Splitter()
.Name("Splitter")
.Panes(panes => {
panes.Add()
.LoadContentFrom("AjaxView_OpenSource", "Splitter");
})
%>
LoadContentFrom(System.String,System.String,System.Object)
Sets the Url, which will be requested to return the content.
Parameters
actionName System.String
The action name.
controllerName System.String
The controller name.
routeValues System.Object
Route values.
Example (ASPX)
<%= Html.Kendo().Splitter()
.Name("Splitter")
.Panes(panes => {
panes.Add()
.LoadContentFrom("AjaxView_OpenSource", "Splitter", new { id = 10 });
})
%>
LoadContentFrom(System.String)
Sets the Url, which will be requested to return the pane content.
Parameters
value System.String
The url.
Example (ASPX)
<%= Html.Kendo().Splitter()
.Name("Splitter")
.Panes(panes => {
panes.Add()
.LoadContentFrom(Url.Action("AjaxView_OpenSource", "Splitter"));
})
%>
Label(System.String)
The label of the current pane. Will be used as a aria-label
for the Splitter separator
that has the pane as its primary one (the separator that is immediately after the pane).
Parameters
label System.String
The label text.
LabelId(System.String)
The ID of the element that should be used as a label of the current pane. Will be used as a value of the aria-labelledby
attribute for the Splitter separator
that has the pane as its primary one (the separator that is immediately after the pane).
Parameters
labelId System.String
The ID of the label element.
Collapsed(System.Boolean)
Specifies whether a pane is initially collapsed (true) or expanded (true).
Parameters
value System.Boolean
The value for Collapsed
CollapsedSize(System.String)
Specifies the size of a collapsed pane defined as pixels (i.e. "200px") or as a percentage (i.e. "50%"). This value must not exceed panes.max or be less then panes.min.
Parameters
value System.String
The value for CollapsedSize
Collapsible(System.Boolean)
Specifies whether a pane is collapsible (true) or not collapsible (false).
Parameters
value System.Boolean
The value for Collapsible
Resizable(System.Boolean)
Specifies whether a pane is resizable (true) or not resizable (false).
Parameters
value System.Boolean
The value for Resizable
Scrollable(System.Boolean)
Specifies whether a pane is scrollable (true) or not scrollable (false).
Parameters
value System.Boolean
The value for Scrollable
Size(System.String)
Specifies the size of a pane defined as pixels (i.e. "200px") or as a percentage (i.e. "50%"). This value must not exceed panes.max or be less then panes.min.
Parameters
value System.String
The value for Size