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

Defines the fluent API for configuring grouping.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectGridGroupableSortSettingsBuilder<T>

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

Constructors

GridGroupableSortSettingsBuilder method.

C#
public GridGroupableSortSettingsBuilder(GridGroupableSortSettings<T> container)
Parameters:containerGridGroupableSortSettings<T>

Properties

Gets or sets the Container.

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

Methods

A JavaScript function which is used to compare the groups (refer to sortable for sorting the items of the groups). It has the same signature as the compare function accepted by Array.sort.

C#
public GridGroupableSortSettingsBuilder<T> Compare(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridGroupableSortSettingsBuilder<T>

Returns the current GridGroupableSortSettingsBuilder<T> instance.

A JavaScript function which is used to compare the groups (refer to sortable for sorting the items of the groups). It has the same signature as the compare function accepted by Array.sort.

C#
public GridGroupableSortSettingsBuilder<T> Compare(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

GridGroupableSortSettingsBuilder<T>

Returns the current GridGroupableSortSettingsBuilder<T> instance.

The sort order of the groups according to the group field.The supported values are: "asc" (ascending order) or "desc" (descending order).

C#
public GridGroupableSortSettingsBuilder<T> Dir(ListSortDirection? value)
Parameters:valueListSortDirection?

The value for Dir

Returns:

GridGroupableSortSettingsBuilder<T>

Returns the current GridGroupableSortSettingsBuilder<T> instance.