Class GanttSortDescriptorBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
GanttSortDescriptorBuilder
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.Gantt
Assembly: Syncfusion.AspNetMvc.Gantt.dll
Syntax
public class GanttSortDescriptorBuilder : ControlBuilder
Constructors
GanttSortDescriptorBuilder()
Declaration
public GanttSortDescriptorBuilder()
GanttSortDescriptorBuilder(List<GanttSortDescriptor>)
Declaration
public GanttSortDescriptorBuilder(List<GanttSortDescriptor> collection)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<GanttSortDescriptor> | collection |
Methods
Add()
Declaration
public void Add()
Direction(SortDirection)
Defines the direction of the sort operation.
Ascending: Sorts the column in ascending order.
Descending: Sorts the column in descending order.
Declaration
public GanttSortDescriptorBuilder Direction(SortDirection direction)
Parameters
| Type | Name | Description |
|---|---|---|
| SortDirection | direction |
Returns
| Type |
|---|
| GanttSortDescriptorBuilder |
Field(String)
Defines the field (column) name to sort by.
Declaration
public GanttSortDescriptorBuilder Field(string field)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | field |
Returns
| Type |
|---|
| GanttSortDescriptorBuilder |