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

Defines the fluent API for configuring GridPinnableSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class GridPinnableSettingsBuilder<T> where T : class

Inheritance: objectGridPinnableSettingsBuilder<T>

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 GridPinnableSettingsBuilder<T> class.

C#
public GridPinnableSettingsBuilder(GridPinnableSettings<T> container)
Parameters:containerGridPinnableSettings<T>

Properties

Gets or sets the container settings.

C#
protected GridPinnableSettings<T> Container { get; }

Methods

Sets the data items pinned to the bottom of the Grid.

C#
public GridPinnableSettingsBuilder<T> Bottom(IEnumerable value)
Parameters:valueIEnumerable

A collection of data item identifiers to pin to the bottom.

Returns:

GridPinnableSettingsBuilder<T>

An array of data item ID values that will be pinned to the bottom of the Grid on initialization.

C#
public GridPinnableSettingsBuilder<T> Bottom(params object[] value)
Parameters:valueobject[]

The value for Bottom

Returns:

GridPinnableSettingsBuilder<T>

Returns the current GridPinnableSettingsBuilder<T> instance.

A function that determines whether a specific row can be pinned. The function receives an object with a dataItem field containing the data item for the row, and must return a boolean value. When the function returns false for a row, the pin column renders an empty cell without a pin icon, the pin column context menu does not open for that row, and the pinRows method does not pin the row. Unpinning is always allowed regardless of this function's return value.

C#
public GridPinnableSettingsBuilder<T> IsRowPinnable(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridPinnableSettingsBuilder<T>

Returns the current GridPinnableSettingsBuilder<T> instance.

A function that determines whether a specific row can be pinned. The function receives an object with a dataItem field containing the data item for the row, and must return a boolean value. When the function returns false for a row, the pin column renders an empty cell without a pin icon, the pin column context menu does not open for that row, and the pinRows method does not pin the row. Unpinning is always allowed regardless of this function's return value.

C#
public GridPinnableSettingsBuilder<T> IsRowPinnable(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

GridPinnableSettingsBuilder<T>

Returns the current GridPinnableSettingsBuilder<T> instance.

Controls where rows can be pinned.

C#
public GridPinnableSettingsBuilder<T> PinRowLocation(GridPinRowLocation value)
Parameters:valueGridPinRowLocation

The value for PinRowLocation

Returns:

GridPinnableSettingsBuilder<T>

Returns the current GridPinnableSettingsBuilder<T> instance.

Sets the data items pinned to the top of the Grid.

C#
public GridPinnableSettingsBuilder<T> Top(IEnumerable value)
Parameters:valueIEnumerable

A collection of data item identifiers to pin to the top.

Returns:

GridPinnableSettingsBuilder<T>

An array of data item ID values that will be pinned to the top of the Grid on initialization.

C#
public GridPinnableSettingsBuilder<T> Top(params object[] value)
Parameters:valueobject[]

The value for Top

Returns:

GridPinnableSettingsBuilder<T>

Returns the current GridPinnableSettingsBuilder<T> instance.