ReadOnlyCustomDataSourceSortDescriptorFactory

Methods

Add(System.String)

Add field based on which the data will be sorted.

Parameters

memberName - System.String

Example

Razor
 
               @(Html.Kendo().DataSource<OrderViewModel>()
                  .Name("dataSource")
                   .Ajax(dataSource => dataSource
                      .Read(read => read.Action("Orders_Read", "DataSource"))
                      .Sort(s=>s.Add("OrderId")
                   )
            )
             
In this article
MethodsAdd(System.String)
Not finding the help you need?
Contact Support