Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QuickGrid - Expose way to Hide Column Options #54357

Open
1 task done
anemitoff opened this issue Mar 4, 2024 · 1 comment · May be fixed by #56991 or #57904
Open
1 task done

QuickGrid - Expose way to Hide Column Options #54357

anemitoff opened this issue Mar 4, 2024 · 1 comment · May be fixed by #56991 or #57904
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-blazor-quickgrid help candidate Indicates that the issues may be a good fit for community to help with. Requires work from eng. team
Milestone

Comments

@anemitoff
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I am trying to hide the currently displayed column options when the user presses ESC but there is no function available to do so.

Describe the solution you'd like

The QuickGrid<T>::ShowColumnOptionsAsync(ColumnBase<T> column) should accept a NULLABLE value. It should be defined as QuickGrid<T>::ShowColumnOptionsAsync(ColumnBase<T>? column)

No code change would be required, simply a change to the signature of the function.

Alternatively a HideCurrentColumnOptions() method could be exposed.

Additional context

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Mar 4, 2024
@SteveSandersonMS SteveSandersonMS added this to the Backlog milestone Mar 5, 2024
@SteveSandersonMS SteveSandersonMS added the help candidate Indicates that the issues may be a good fit for community to help with. Requires work from eng. team label Mar 5, 2024
@matthetherington
Copy link

You can cast null to a ColumnBase<> and call ShowColumnOptionsAsync with it, this works but performs some unnecessary interop under the hood:

await _quickGrid.ShowColumnOptionsAsync((ColumnBase<Foo>)null!);

There's actually a CloseColumnOptions method on QuickGrid, but it's private. I've PR'd a change to make this public here: #57904

@mkArtakMSFT mkArtakMSFT added enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-blazor-quickgrid labels Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-blazor-quickgrid help candidate Indicates that the issues may be a good fit for community to help with. Requires work from eng. team
Projects
None yet
4 participants