MudBlazor icon indicating copy to clipboard operation
MudBlazor copied to clipboard

DataGrid with column options to only hide, nothing else, will not provide ColumnOptions despite requesting them

Open pingu2k4 opened this issue 1 year ago • 1 comments

Bug type

Component

Component name

MudDataGrid

What happened?

When you set your column(s) to hideable, but not sortable (and not filterable etc, though these are all default), the ShowColumnOptions parameter takes no effect. This is at both the DataGrid and the column level.

We can set ShowMenuIcon on the DataGrid to get access to this, of course, but it would be great to access it at the column level too.

Expected behavior

The column options should be visible

Reproduction link

https://try.mudblazor.com/snippet/wYcIkbHkinjxicdP

Reproduction steps

  1. For at least one column in a data grid, set it such that it is hideable, not sortable, and not filterable etc.
  2. Set ShowColumnOptions to true
  3. Observe that column options do not appear.

Relevant log output

No response

Version (bug)

6.14.0

Version (working)

No response

What browsers are you seeing the problem on?

Chrome

On what operating system are you experiencing the issue?

Windows

Pull Request

  • [ ] I would like to do a Pull Request

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

pingu2k4 avatar Jan 30 '24 23:01 pingu2k4

Noticed something similar to this issue. If you set the SortMode to SortMode.Multiple it shows it. And this is also the same behavior/bug when disabling sort on a column but still having it be draggable and hidable.

stian-bay avatar Feb 14 '24 11:02 stian-bay