Defines the fluent interface for configuring bound columns sortable options
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class GridBoundColumnSortableBuilder
Inheritance: objectGridBoundColumnSortableBuilder
Inherited Members
Constructors
Initializes a new instance of the GridBoundColumnSortableBuilder class.
public GridBoundColumnSortableBuilder(GridBoundColumnSortableSettings settings)
The settings.
Methods
Sets a value determining whether the column can be unsorted or not.
public GridBoundColumnSortableBuilder AllowUnsort(bool allowUnsort)
The a value determining whether the column can be unsorted (true) or not (false).
Returns:GridBoundColumnSortableBuilder
Returns the current GridBoundColumnSortableBuilder instance for method chaining.
Sets a JavaScript function which is used to compare the values.
public GridBoundColumnSortableBuilder Compare(Func<object, object> handler)
The handler.
Returns:GridBoundColumnSortableBuilder
Returns the current GridBoundColumnSortableBuilder instance for method chaining.
Sets a JavaScript function which is used to compare the values.
public GridBoundColumnSortableBuilder Compare(string handler)
The JavaScript handler.
Returns:GridBoundColumnSortableBuilder
Returns the current GridBoundColumnSortableBuilder instance for method chaining.
Determines the initial sort direction.
public GridBoundColumnSortableBuilder InitialDirection(ListSortDirection initialDirection)
The initial sort direction.
Returns:GridBoundColumnSortableBuilder
Returns the current GridBoundColumnSortableBuilder instance for method chaining.