Defines the fluent API for configuring GridSortableSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class GridSortableSettingsBuilder<T> where T : class
Inheritance: objectGridSortableSettingsBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the GridSortableSettingsBuilder<T> class.
public GridSortableSettingsBuilder(GridSortableSettings<T> container)
The GridSortableSettings<T>.
Properties
Gets or sets the Container.
protected GridSortableSettings<T> Container { get; }
Methods
If set to true the user can get the grid in unsorted state by clicking the sorted column header.
public GridSortableSettingsBuilder<T> AllowUnsort(bool value)
The value for AllowUnsort
Returns:GridSortableSettingsBuilder<T>
Returns the current GridSortableSettingsBuilder<T> instance.
Enables or disables sorting.
public virtual GridSortableSettingsBuilder<T> Enabled(bool value)
If set to true the user could sort the grid by clicking the column header cells. By default sorting is disabled.
Returns:GridSortableSettingsBuilder<T>
Returns the current GridSortableSettingsBuilder<T> instance for method chaining.
Determines the inital (from un-sorted to sorted state) sort direction. The supported values are asc and desc.
public GridSortableSettingsBuilder<T> InitialDirection(string value)
The value for InitialDirection
Returns:GridSortableSettingsBuilder<T>
Returns the current GridSortableSettingsBuilder<T> instance.
If set to true the user will see sort sequence indicators for sorted columns.
public GridSortableSettingsBuilder<T> ShowIndexes(bool value)
The value for ShowIndexes
Returns:GridSortableSettingsBuilder<T>
Returns the current GridSortableSettingsBuilder<T> instance.
Defines the sort modes supported by Kendo UI Grid for ASP.NET MVC
public GridSortableSettingsBuilder<T> SortMode(GridSortMode value)
The value for SortMode
Returns:GridSortableSettingsBuilder<T>
Returns the current GridSortableSettingsBuilder<T> instance.