BlazorTable icon indicating copy to clipboard operation
BlazorTable copied to clipboard

[Bug] How to add Filter by in the server side?

Open MaxsG56 opened this issue 4 years ago • 0 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Please create a standalone Page which reproduces the issue and paste the code here in a code block. More Examples

@page "/Bug152"

<Table TableItem="PersonData" Items="data" ShowSearchBar="true" ShowFooter="true">
    <Column TableItem="PersonData" Title="Id" Field="@(x => x.ShortId)" Sortable="false" Filterable="true" SetFooterValue="Count" />
    <DetailTemplate TableItem="PersonData">
        @context.ShortId
    </DetailTemplate>
</Table>

@code
{
    private PersonData[] data;

    protected override void OnInitialized()
    {
        data = new PersonData[]
        {
            new PersonData()
            {
                ShortId = 5
            }
        };
    }

    public class PersonData
    {
        public int ShortId { get; set; }
    }
}

Expected behavior A clear and concise description of what you expected to happen.

MaxsG56 avatar Mar 19 '21 13:03 MaxsG56