Declined
Last Updated: 13 Jul 2023 12:32 by ADMIN
Anthony
Created on: 22 Jun 2023 13:43
Category: Grid
Type: Feature Request
0
Combobox tab to select parameter request and Grid Enter key request

I added a comment to this feedback post.  In this post, I made a comment on how to get Tab select working in a grid component for a combobox.

It would be nice if tab select was a parameter for any dropdown component and autocomplete. Maybe a parameter called "TabSelect"? It would need to fire before the grid component picks up the Tab key first in InCellEdit mode. 

 

If that was changed above, then the grid component could have the following:

Enter key to move down the list, and Shift-Enter keys to move up the list. Is there a way to do that currently, or could it be added?

5 comments
ADMIN
Svetoslav Dimitrov
Posted on: 13 Jul 2023 12:32

Hello Anthony,

One drawback of this approach is that if there are two matching items, selecting one of them would result in unauthorized manipulation of data by the component. To correct the component value, the user has two options:

  1. Reopen the ComboBox and manually scroll through the options to find the desired one.
  2. Enter the filter criteria and click on the correct option.
In general, the components in the Telerik UI for Blazor suite are designed to avoid direct interference with the data. This is an important feature that ensures flexibility and predictability in the ComboBox.

Considering the above, I have decided to mark this request as Declined because implementing it would require choosing one of two less optimal choices:
  1. Making a selection on behalf of the user when multiple items match the filter criteria.
  2. Selecting the matching item (only when there's a single match) and not selecting any item if multiple items match the filter criteria. This would make the component's behavior less predictable, requiring users to interact with it differently based on their input.

Regards,
Svetoslav Dimitrov
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.
Anthony
Posted on: 06 Jul 2023 13:52

What should the component select if the Data contains two records that match the user input?

I think selecting the first record is totally fine.
ADMIN
Svetoslav Dimitrov
Posted on: 06 Jul 2023 09:22

Hello Anthony,

Thank you for the additional information. I would like to ask a follow-up question: What should the component select if the Data contains two records that match the user input? For example, the Data contains "Manager Software Engineering" and "Manager Public Relationships". Both items will match the "man" user input and tabbing will always select the first alphabetically sorted item. 

That being said, I believe that your requirement requires a custom solution and the one you have sent to me is the best possible one. 

Regards,
Svetoslav Dimitrov
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.
Anthony
Posted on: 29 Jun 2023 12:01
  • The user utilizes the Up/Down key arrows to navigate through the available options in the popup

 

What you said above, users won't do often. The code that I supplied in the post will take the first record in the dropdown list if the tab key is pressed. So in your example, the first item in the dropdown list is manager. If I type "man" and click tab, it should select that list item because it's filtered down to the first record. 

Here is a copy of the working code on the Role Column in the example you provided. Example

 

ADMIN
Svetoslav Dimitrov
Posted on: 29 Jun 2023 11:24

Hello Anthony,

The current behavior of a Grid with InCell mode is with a ComboBox (here is a REPL link where you can test):

  • The user utilizes the Up/Down key arrows to navigate through the available options in the popup
  • The user clicks the Tab key
  • The highlighted item is selected
  • The Edit mode is closed
  • The next editable cell will be opened for editing

Do you experience the same behavior?

Regarding the Enter and Shift + Enter. This will be available once the Add the ability to customize the keyboard shortcuts feature request is implemented. I have added your Vote for it and you can click the Follow button to receive email notifications on status updates. 

Let me know if you have any further questions.

Regards,
Svetoslav Dimitrov
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.