TileLayoutBuilder
Properties
WriteAction - Func
Methods
Columns(System.Double)
Defines the number of columns.
Parameters
value - System.Double
The value for Columns
RETURNS
Returns the current TileLayoutBuilder instance.
Example
@(Html.Kendo().TileLayout()
.Name("tilelayout")
.Columns(5)
)
ColumnsWidth(System.String)
Determines the width of the columns. Numeric values are treated as pixels.
Parameters
value - System.String
The value for ColumnsWidth
RETURNS
Returns the current TileLayoutBuilder instance.
Example
@(Html.Kendo().TileLayout()
.Name("tilelayout")
.ColumnsWidth("300px")
)
Containers(System.Action)
An array with objects representing the settings of the layout items.
Parameters
configurator - System.Action<TileLayoutContainerFactory>
The configurator for the containers setting.
RETURNS
Returns the current instance of TileLayoutBuilder .
Gap(System.Action)
An object holding values that determine the spacing between the layout items horizontally and vertically.
Parameters
configurator - System.Action<TileLayoutGapSettingsBuilder>
The configurator for the gap setting.
RETURNS
Returns the current instance of TileLayoutBuilder .
Height(System.String)
Determines the height of the layout. Numeric values are treated as pixels.
Parameters
value - System.String
The value for Height
RETURNS
Returns the current TileLayoutBuilder instance.
Example
@(Html.Kendo().TileLayout()
.Name("tilelayout")
.Height("500")
)
Navigatable(System.Boolean)
A value indicating whether keyboard navigation will be enabled.
Parameters
value - System.Boolean
The value for Navigatable
RETURNS
Returns the current TileLayoutBuilder instance.
Example
@(Html.Kendo().TileLayout()
.Name("tileLayout")
.Navigatable(true)
)
Navigatable()
A value indicating whether keyboard navigation will be enabled.
RETURNS
Returns the current TileLayoutBuilder instance.
Example
@(Html.Kendo().TileLayout()
.Name("tileLayout")
.Navigatable(true)
)
Reorderable(System.Action)
Determines whether the reordering functionality will be enabled.
Parameters
configurator - System.Action<TileLayoutReorderableSettingsBuilder>
The configurator for the reorderable setting.
RETURNS
Returns the current instance of TileLayoutBuilder .
Reorderable()
Determines whether the reordering functionality will be enabled.
RETURNS
Returns the current instance of TileLayoutBuilder .
Reorderable(System.Boolean)
Determines whether the reordering functionality will be enabled.
Parameters
enabled - System.Boolean
Enables or disables the reorderable option.
RETURNS
Returns the current instance of TileLayoutReorderableSettingsBuilder .
Resizable(System.Boolean)
Determines whether the resizing functionality will be enabled.
Parameters
value - System.Boolean
The value for Resizable
RETURNS
Returns the current TileLayoutBuilder instance.
Example
@(Html.Kendo().TileLayout()
.Name("tileLayout")
.Resizable(true)
)
Resizable()
Determines whether the resizing functionality will be enabled.
RETURNS
Returns the current TileLayoutBuilder instance.
Example
@(Html.Kendo().TileLayout()
.Name("tileLayout")
.Resizable(true)
)
RowsHeight(System.String)
Determines the height of the rows. Numeric values are treated as pixels.
Parameters
value - System.String
The value for RowsHeight
RETURNS
Returns the current TileLayoutBuilder instance.
Example
@(Html.Kendo().TileLayout()
.Name("tileLayout")
.RowsHeight("235px")
)
Width(System.String)
Determines the width of the layout. Numeric values are treated as pixels.
Parameters
value - System.String
The value for Width
RETURNS
Returns the current TileLayoutBuilder instance.
Example
@(Html.Kendo().TileLayout()
.Name("tileLayout")
.Width("400px")
)
Events(System.Action)
Configures the client-side events.
Parameters
configurator - System.Action<TileLayoutEventBuilder>
The client events action.
RETURNS
Returns the current TileLayoutBuilder instance.
Example
@(Html.Kendo().TileLayout()
.Name("TileLayout")
.Events(events => events
.Resize("onResize")
)
)
ToComponent()
Returns the internal view component.
RETURNS
The instance that represents the component.
Expression(System.String)
Sets the name of the component.
Parameters
modelExpression - System.String
The name.
RETURNS
Returns the current instance.
Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)
Sets the name of the component.
Parameters
modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
The name.
RETURNS
Returns the current instance.
Name(System.String)
Sets the name of the component.
Parameters
componentName - System.String
The name.
RETURNS
Returns the current instance.
Deferred(System.Boolean)
Suppress initialization script rendering. Note that this options should be used in conjunction with Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean,System.Boolean)
Parameters
deferred - System.Boolean
RETURNS
Returns a DeferredWidgetBuilder instance.
HtmlAttributes(System.Object)
Sets the HTML attributes.
Parameters
attributes - System.Object
The HTML attributes.
RETURNS
Returns the current instance.
HtmlAttributes(System.Collections.Generic.IDictionary)
Sets the HTML attributes.
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
The HTML attributes.
RETURNS
Returns the current instance.
ScriptAttributes(System.Object,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Object
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.
RETURNS
Returns the current instance.
ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.
RETURNS
Returns the current instance.
Render()
Renders the component in place.
ToHtmlString()
Returns the HTML representation of the component.
WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)
Parameters
writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder
ToClientTemplate()
Returns the client template for the component.
AsModule(System.Boolean)
Specifies whether the initialization script of the component will be rendered as a JavaScript module.
Parameters
value - System.Boolean
RETURNS
Returns the current instance.