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

Defines the fluent interface for configuring the PivotGridSortableSettings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class PivotGridSortSettingsBuilder

Inheritance: objectPivotGridSortSettingsBuilder

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 PivotGridSortSettingsBuilder class.

C#
public PivotGridSortSettingsBuilder(PivotGridSortableSettings settings)
Parameters:settingsPivotGridSortableSettings

The settings.

Methods

Enables or disables unsorted mode.

C#
public virtual PivotGridSortSettingsBuilder AllowUnsort(bool value)
Parameters:valuebool

The value.

Returns:

PivotGridSortSettingsBuilder

Example:
C#
@( Html.Kendo().PivotGrid()
.Name("PivotGrid")
.Sortable(sorting => sorting.AllowUnsort(true))
)

Enables or disables sorting.

C#
public virtual PivotGridSortSettingsBuilder Enabled(bool value)
Parameters:valueboolReturns:

PivotGridSortSettingsBuilder

The Enabled method is useful when you need to enable sorting based on certain conditions.

Example:
C#
@( Html.Kendo().PivotGrid()
.Name("PivotGrid")
.Sortable(sorting => sorting.Enabled((bool)ViewData["enableSorting"]))
)