Class PivotViewSortSettingBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
PivotViewSortSettingBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.EJ2.PivotView
Assembly: Syncfusion.AspNetMvc.PivotView.dll
Syntax
public class PivotViewSortSettingBuilder : ControlBuilder
Constructors
PivotViewSortSettingBuilder()
Declaration
public PivotViewSortSettingBuilder()
PivotViewSortSettingBuilder(List<PivotViewSortSetting>)
Declaration
public PivotViewSortSettingBuilder(List<PivotViewSortSetting> collection)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<PivotViewSortSetting> | collection |
Methods
Add()
Declaration
public void Add()
MembersOrder(Double[])
Allows to specify the order in which the members should be sorted.
Declaration
public PivotViewSortSettingBuilder MembersOrder(double[] membersOrder)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double[] | membersOrder |
Returns
| Type |
|---|
| PivotViewSortSettingBuilder |
MembersOrder(Object)
Allows to specify the order in which the members should be sorted.
Declaration
public PivotViewSortSettingBuilder MembersOrder(object membersOrder)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | membersOrder |
Returns
| Type |
|---|
| PivotViewSortSettingBuilder |
MembersOrder(String[])
Allows to specify the order in which the members should be sorted.
Declaration
public PivotViewSortSettingBuilder MembersOrder(string[] membersOrder)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String[] | membersOrder |
Returns
| Type |
|---|
| PivotViewSortSettingBuilder |
Name(String)
Allows to set the field name to order their members either in ascending or descending in the pivot table.
Declaration
public PivotViewSortSettingBuilder Name(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
Returns
| Type |
|---|
| PivotViewSortSettingBuilder |
Order(Sorting)
Allows to apply sorting to the specified field either by ascending or descending or JSON order. The types are,
Ascending: It allows to display the field members in ascending order.
Descending: It allows to display the field members in descending order.
None: It allows to display the field members based on JSON order.
Declaration
public PivotViewSortSettingBuilder Order(Sorting order)
Parameters
| Type | Name | Description |
|---|---|---|
| Sorting | order |
Returns
| Type |
|---|
| PivotViewSortSettingBuilder |