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

Defines the fluent interface for configuring the DatePickerBase component.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class PaletteSizeBuilder

Inheritance: objectPaletteSizeBuilder

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

Constructors

Initializes a new instance of the PaletteSizeBuilder class.

C#
public PaletteSizeBuilder(ColorPaletteTileSize tileSize)
Parameters:tileSizeColorPaletteTileSize

The tile size.

Methods

Sets the height of the tiles.

C#
public PaletteSizeBuilder Height(int height)
Parameters:heightint

The value that configures the tile height.

Returns:

PaletteSizeBuilder

Example:
C#
@(Html.Kendo().ColorPalette()
.Name("ColorPalette")
.TileSize(s => s.Height(50))
)

Sets the width of the tiles.

C#
public PaletteSizeBuilder Width(int width)
Parameters:widthint

The value that configures the tile width.

Returns:

PaletteSizeBuilder

Example:
C#
@(Html.Kendo().ColorPalette()
.Name("ColorPalette")
.TileSize(s => s.Width(20))
)