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 PivotConfiguratorSortSettingsBuilder

Inheritance: objectPivotConfiguratorSortSettingsBuilder

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 PivotConfiguratorSortSettingsBuilder(PivotConfiguratorSortableSettings settings)
Parameters:settingsPivotConfiguratorSortableSettings

The settings.

Methods

Enables or disables unsorted mode.

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

The value.

Returns:

PivotConfiguratorSortSettingsBuilder

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

Enables or disables sorting.

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

PivotConfiguratorSortSettingsBuilder

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

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