Unplanned
Last Updated: 05 Apr 2023 09:13 by ADMIN
Kenny
Created on: 12 May 2019 16:44
Category: Grid
Type: Feature Request
19
Specifying which field should have focus in grid editor.

It would be nice if I could specify an item in the inline editor (or any other for that matter) to get focus when the editor is activated.

 

Is this possible?

 

Thanks,

Kenny

9 comments
ADMIN
Dimo
Posted on: 05 Apr 2023 09:13

Hello Meindert,

The desired behavior will be possible to achieve out-of-the-box when we implement a cell click event and/or expose the clicked cell in the OnRowClick event.

Until then, the only option is to use GridColumn Templates with @onclick for all editable columns.

Regards,
Dimo
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Meindert
Posted on: 29 Mar 2023 17:03

Hi,

We have to use InLine editing, because of bad performance InCell editing.

when make use of OnRowClick i like to have the focus on the specific editor where the mouse is pointing to. 

Is it possible to set the focus to a specific column editor programmatically without making use of EditorTemplate  ?

regards, Meindert

ADMIN
Marin Bratanov
Posted on: 02 Feb 2021 14:56

Hello Jason,

This happens in the InCell edit mode already, check it out in the demos: https://demos.telerik.com/blazor-ui/grid/editing-incell

That's what I meant with the grid having default focus for the first input now. With InCell editing there is only one inputin the current cell, with the other modes we focus the first input in the current row.

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Jason
Posted on: 02 Feb 2021 14:03
In my opinion, the best implementation would be

"The focus should be placed in the cell where the user clicks".  So for example if the user clicks on the 3rd row and 4th column, the focus would immediately go into the cell at the 3rd row and 4th column.  This is intuitively where an end user would expect the focus to go.

Ideally this would be the default behavior and not require any coding to make it happen

ADMIN
Marin Bratanov
Posted on: 02 Feb 2021 13:03

Hi everyone,

The grid has been focusing the first available input by default for a while now.

That said, we still haven't seen examples of how one would expect that to be exposed for configuration. If you have any suggestions (or if you still need it, considering there is default focus and you can use the EditorTemplate to steal it), let us know.

 

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Marin Bratanov
Posted on: 21 Jul 2020 07:51

Hello Jason,

Here's the request for that behavior of the InCell editing: https://feedback.telerik.com/blazor/1454451-incell-editing-should-focus-the-first-input-in-an-opened-cell. Please Follow that (I've added your Vote on your behalf). It even has a workaround solution for now. You may also want to Vote for and Follow an actual spreadsheet component: https://feedback.telerik.com/blazor/1442151-spreadsheet-component

This item is about default focus in the other modes where you have more than one editor at a time - Inline and Popup editing. Could you share your thoughts on how you would expect control over that to be exposed for you?

Regards,
Marin Bratanov
Progress Telerik

Jason
Posted on: 20 Jul 2020 19:59

Related to this thread, it would be useful if a user could click on any cell in a row and immediately start typing (just like a normal spreadsheet).

For example in the current Grid implementation, if we use EditMode="@GridEditMode.InCell", the end user has to click twice to enter data.  Once to make the cell editable, and a second time to put the cursor inside of the cell, so that they can start typing.  It is wasteful energy for the user.

 

Kenny
Posted on: 19 Jun 2019 22:11
You could specify it as an attribute maybe.  Thinking about this further, if the first field in the grid would get focus, that would be much better than no field getting focus and would probably be sufficient for most situations.
ADMIN
Marin Bratanov
Posted on: 13 May 2019 04:34
Hi Kenny,

I moved this to the feedback portal: https://feedback.telerik.com/blazor/1408647-specifying-which-field-should-have-focus-in-grid-editor. That would be a nice addition to the grid capabilities, although I am not sure how that should be exposed through the grid API. Do you have any suggestions? Where would you look for such a feature and how would you expect it to be exposed?


Regards,
Marin Bratanov
Progress Telerik UI for Blazor