Completed
Last Updated: 29 May 2025 12:57 by ADMIN
Release 2025 Q1 (Feb)
Chiel
Created on: 07 Jan 2025 13:52
Category: Grid
Type: Bug Report
1
Expose the sorts TagHelper for the Grid's Column Filter Datasource TagHelper

Enhancement

Expose the sorts TagHelper for the Grid's column filter datasource taghelper

Overview

Currently, the Grid's Column Filter Datasource Taghelper exposes the following inner child TagHelpers.

Unlike its HtmlHelper counterpart which happens to expose the .Sort() API configuration. For example:

.Columns(columns =>
{
    columns.Bound(p => p.ShipName).Filterable(ftb =>
    {
        ftb.Multi(true);
        ftb.Search(true);
        ftb.CheckAll(true);
        ftb.DataSource(dataSource => dataSource
            .Custom()
            ...
            .Sort(sort =>
            {
                sort.Add("ShipName").Ascending();
            })
        );
    });
})
0 comments