Class GanttSortDescriptorBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
GanttSortDescriptorBuilder
Namespace: Syncfusion.EJ2.Gantt
Assembly: Syncfusion.EJ2.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
Field(String)
Defines the field (column) name to sort by.
Declaration
public GanttSortDescriptorBuilder Field(string field)
Parameters
Type | Name | Description |
---|---|---|
System.String | field |