This is a migrated thread and some comments may be shown as answers.

Kendo Grid In-Cell editing with a tab

2 Answers 1230 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matej
Top achievements
Rank 1
Veteran
Matej asked on 16 Jan 2020, 02:26 PM

Hi,

I need In-Cell editable grid but it must be able to switch between cells with a tab. Is to possible to reuse In-Cell editable grid https://www.telerik.com/kendo-react-ui/components/grid/editing/editing-in-cell/ or do I need to do it with custom cells?

2 Answers, 1 is accepted

Sort by
0
Matej
Top achievements
Rank 1
Veteran
answered on 16 Jan 2020, 05:01 PM
Nevermind, I found the answer. Here is an example https://stackblitz.com/edit/react-vm75k4
0
Stefan
Telerik team
answered on 17 Jan 2020, 06:38 AM

Hello, Matej,

I`m glad to hear that the desired result is achieved.

Also, thank you for sharing the example with the KendoReact community, it is highly appreaciated.

This is a link to our demo that showcases how to achieve the same:

https://www.telerik.com/kendo-react-ui/components/grid/accessibility/#toc-in-cell-editing-with-tab

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Michael
Top achievements
Rank 1
commented on 29 Jun 2021, 06:25 AM

Hi Stephan

Your keyboard navigation example does not demonstrate how to tab from cell to cell to edit.

Matej's example works well, but it's a bit of a hack
Stefan
Telerik team
commented on 29 Jun 2021, 06:31 AM

Indeed the example we had there was removed as we have built-in navigation how, but that works with the arrow keys.

The example shown by Matej, is the same as the one we had as a demo before.

We also have in our backlog to make a new example or extend the current keyboard navigation to have an option to move between the cells with tab.

Michael
Top achievements
Rank 1
commented on 29 Jun 2021, 11:51 PM | edited

Thanks. The only real-world use case in my experience where keyboard navigation would be (very) important is tabbing from cell to cell to edit. I'm not sure what the value is using arrow keys to merely highlight cells..... Tabbing from cell to cell to edit should be built in. Every modern app has it... And the edit cell should achieve focus on it's own. This is particularly an issue where I had fixed columns and scrolling - I had to write convoluted code when tabbing from cell to cell and getting the column to focus properly... Kendo UI (jQuery) has this all built in....
Stefan
Telerik team
commented on 30 Jun 2021, 06:27 AM

Yes, we agree that using a tab for incell editing is an important feature.

The arrow keys move the focus as the user may do different actions with the keyboard not only editing.

For example, they can go to the expand cell and expand it, they can go to the filter cell and add a new filter, they can also use it for editing (Enter will go in the edit, Esc will leave editing).

The keyboard navigation is still a new feature and we are actively collecting feedback to improve it.
Sanja Tolo
Top achievements
Rank 1
Iron
Iron
commented on 19 Jul 2022, 01:13 PM

Hi,

Any plans on getting this example out? I would also need it with arrow keys.

My client wants to mimic excel file editing in grid, which I could do in Kendo for Jquery without any issues. We are rewriting his app to React.

Basically the scenario is to have a batch edit grid (which works with InCell editing), and do arrows moving between rows and fields:

- right arrow goes from one edited field to the right field near it in edit mode
- down arrow does the same thing only moves to the row below it and put the same field in that row to edit mode
- esc exits edit mode
- enter enters edit mode if it's not already in edit mode

Can you please tell me how to achieve this?

Konstantin Dikov
Telerik team
commented on 21 Jul 2022, 09:33 AM

Hi Sanja,

There is still no official example with in-cell editing and arrow keys, but I have prepared one that you can test and see if it will meet your requirements:

Please note that the KendoReact Grid in-cell editing is nothing more than handling the events of the TD and TR elements and opening a cell for editing (all happening within the "renderers.jsx" file in the above example (and in our in-cell editing demo). The actual logic for opening and closing the editing can be change as per the exact requirements.

As for the arrow keys, I have enabled the "navigatable" property of the Grid and I have also changed the logic for going into edit mode from "click" to "pressing Enter key". The example also exits the edit mode with enter, but you can change it to "Esc" key instead.

Hope this helps.

 

 

Konstantin Dikov
Telerik team
commented on 21 Aug 2023, 05:49 AM

Adding an updated version of the example to handle keyboadnavid values starting with numbers:

Tags
General Discussions
Asked by
Matej
Top achievements
Rank 1
Veteran
Answers by
Matej
Top achievements
Rank 1
Veteran
Stefan
Telerik team
Share this question
or