dotnet / dotnet/aspnetcore

QuickGrid: Make ColumnBase.IsSortableByDefault() public.

Open
#44,898 4 comments 1 reaction 0 assignees View on GitHub
api-suggestion area-blazor enhancement feature-blazor-quickgrid
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

## Background and Motivation

QuickGrid's ColumnBase currently has a HeaderTemplate property that allows you to render a custom header for the column. The default header is rendered in ColumnBase.RenderDefaultHeaderContent(RenderTreeBuilder) and makes use of the method IsSortableByDefault(), which is protected. Because of this, it's not possible to properly check if the column is sortable when using a custom header.

## Proposed API

```diff
namespace Microsoft.AspNetCore.Components.QuickGrid;

public abstract partial class ColumnBase
{
- protected virtual bool IsSortableByDefault();
+ public virtual bool IsSortableByDefault();
}
```

## Usage Examples

## Alternative Designs

## Risks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.