QuickGrid: Make ColumnBase.IsSortableByDefault() public.
- 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
Assessment
This issue has not been assessed yet.