ASP.NET Core MVC Controls | ComponentOne
C1.AspNetCore.Mvc Assembly / C1.Web.Mvc.TagHelpers Namespace / ODataCollectionViewServiceTagHelper Class / OrderBy Property

In This Topic
    OrderBy Property (ODataCollectionViewServiceTagHelper)
    In This Topic
    Configurates C1.Web.Mvc.CollectionViewService<T>.SortDescriptions. Sets the sort descriptions.
    Syntax
    'Declaration
     
    Public Property OrderBy As String
    public string OrderBy {get; set;}
    Remarks
    A string that contains the field name followed by "ASC" or "asc" (ascending) or "DESC" or "desc" (descending). Fields are sorted ascending by default. Multiple fields can be separated by commas.
    Example
    <c1-items-sources order-by="State ASC, ZipCode DESC"></c1-felx-grid>
    See Also