DataSourceSortBuilder.AddSorting(String, Boolean) Method
Adds a sorting option.
Namespace: DevExtreme.AspNet.Mvc.Builders.DataSources
Assembly: DevExtreme.AspNet.Core.dll
Declaration
public DataSourceSortBuilder AddSorting(
string fieldName,
bool desc = false
)
Parameters
Name | Type | Description |
---|---|---|
fieldName | String | The option value. |
Optional Parameters
Name | Type | Default |
---|---|---|
desc | Boolean | False |
Returns
Type |
---|
DataSourceSortBuilder |
See Also