MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

Datagrid problems with keyboard

Open
#1,284 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug up-for-grabs
Dominant language
C#
Stars
16.3k
Forks
3.5k
Avg merge
1d 22h
Merged PRs (30d)
8

Description

the datagrid MaterialDataGridComboBoxColumn can't be used with keyboard

when i get to the column with my keyboard by pressing "Tab" pressing any key to open the "drop down list" including space doesn't do anything and i have to use the mouse to do so even if i forced the editing cell mode for it

can't set the MaterialDataGridComboBoxColumn to editable

pressing tab to go throw app fields work fine until i reach a datagrid instead of going from the last field to the first cell in the first row if there is any it will go throw the columns headers first then the first row.
if you need this for a checkbox to select all or something just add IsTabStop with false as the default also there is no visible indication where it currently focus on with the headers because the dots box doesn't show on them

the MaterialDesignDataGridTextColumnPopupEditingStyle should popup with minwidth as wide as the cell width.

demo https://youtu.be/d21YR-9FKk4

you can test all of this in the demo app, thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the demo app described in the issue and reproduce the keyboard behavior in MaterialDataGridComboBoxColumn. Inspect the datagrid column behavior, header tab order and focus indication, and MaterialDesignDataGridTextColumnPopupEditingStyle. Done means keyboard editing works, tab navigation and focus are usable, and the popup minimum width matches the cell width.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.