Class TreeGridSortedColumnBuilder
Inheritance
System.Object
TreeGridSortedColumnBuilder
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 TreeGridSortedColumnBuilder
Constructors
TreeGridSortedColumnBuilder(TreeGridSortSettingOption)
Initializes a new instance of the
Declaration
public TreeGridSortedColumnBuilder(TreeGridSortSettingOption sortOptions)
Parameters
Type | Name | Description |
---|---|---|
TreeGridSortSettingOption | sortOptions | It displays the list of SortSettings option |
Fields
sortOptions
Declaration
public TreeGridSortSettingOption sortOptions
Field Value
Type | Description |
---|---|
TreeGridSortSettingOption |
Methods
Add()
Adds the column to be sorted into SortSettings option.
Declaration
public void Add()
Direction(TreeGridSortOrder)
It sets a value that defines the sorting direction.
Declaration
public TreeGridSortedColumnBuilder Direction(TreeGridSortOrder direction)
Parameters
Type | Name | Description |
---|---|---|
TreeGridSortOrder | direction | It accepts string and displays the sorting direction |
Returns
Type | Description |
---|---|
TreeGridSortedColumnBuilder | TreeGridSortedColumnBuilder |
Field(String)
It sets a value that indicates field name of the column to be sorted.
Declaration
public TreeGridSortedColumnBuilder Field(string field)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | It accepts string and displays the field to be sorted |
Returns
Type | Description |
---|---|
TreeGridSortedColumnBuilder | TreeGridSortedColumnBuilder |