Defines the fluent interface for configuring the Sortable.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TModel
Syntax:
public class GridSortSettingsBuilder<TModel> where TModel : class
Inheritance: objectGridSortSettingsBuilder<TModel>
Inherited Members
Constructors
Initializes a new instance of the GridSortSettingsBuilder<TModel> class.
public GridSortSettingsBuilder(GridSortableSettings settings)
The settings.
Methods
Enables or disables unsorted mode.
public virtual GridSortSettingsBuilder<TModel> AllowUnsort(bool value)
If set to true the user can get the grid in unsorted state by clicking the sorted column header.
Returns:GridSortSettingsBuilder<TModel>
Enables or disables sorting.
public virtual GridSortSettingsBuilder<TModel> 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:GridSortSettingsBuilder<TModel>
Determines the inital (from un-sorted to sorted state) sort direction.
public GridSortSettingsBuilder<TModel> InitialDirection(ListSortDirection initialDirection)
Determines the inital (from un-sorted to sorted state) sort direction. The supported values are asc and desc.
Returns:GridSortSettingsBuilder<TModel>
If set to true the user will see sort sequence indicators for sorted columns.
public GridSortSettingsBuilder<TModel> ShowIndexes(bool value)
The value for ShowIndexes
Returns:GridSortSettingsBuilder<TModel>
Sets the sort mode of the grid.
public virtual GridSortSettingsBuilder<TModel> SortMode(GridSortMode value)
The sorting mode value.
Returns:GridSortSettingsBuilder<TModel>