Class SortedColumnBuilder<T>
Inheritance
System.Object
SortedColumnBuilder<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class SortedColumnBuilder<T>
where T : class
Type Parameters
Name | Description |
---|---|
T |
Constructors
SortedColumnBuilder(SortSettings)
It sets a value that indicates whether to customize the sorting behavior of the grid.
Declaration
public SortedColumnBuilder(SortSettings sortOptions)
Parameters
Type | Name | Description |
---|---|---|
SortSettings | sortOptions | It displays the list of SortSettings option |
Fields
SortOptions
Declaration
public SortSettings SortOptions
Field Value
Type | Description |
---|---|
SortSettings |
Methods
Add()
Adds the column to be sorted into SortSettings option.
Declaration
public void Add()
Direction(SortOrder)
It sets a value that indicates whether to define the direction to sort the column.
Declaration
public SortedColumnBuilder<T> Direction(SortOrder direction)
Parameters
Type | Name | Description |
---|---|---|
SortOrder | direction | It displays the direction of the column to sort |
Returns
Type | Description |
---|---|
SortedColumnBuilder<T> | SortedColumnBuilder |
Field(String)
It sets a value that indicates whether to define the field name of the column to be sort.
Declaration
public SortedColumnBuilder<T> Field(string field)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | It accepts the string value and defines the fieldname to sort |
Returns
Type | Description |
---|---|
SortedColumnBuilder<T> | SortedColumnBuilder |