telerik / kendo-react

Issue tracker - KendoReact http://www.telerik.com/kendo-react-ui/
https://kendo-react-teal.vercel.app
Other
212 stars 39 forks source link

Data Grid inline editation autofocus - disable #2660

Open dyabol opened 2 weeks ago

dyabol commented 2 weeks ago

Data Grid from a certain version automatically focuses the first editor in inline editing.

But in some cases where I want to focus a different editor than the first or focus nothing, this behavior is undesirable.

I got a solution in the support center by removing the className "k-grid-edit-row" from the table row. Which works, but it's not a system solution where it's granted that it won't have a negative impact on the table's functioning in the future.

I suggest adding a property to the table that suppresses this behavior or creating a props context where this can be globally suppressed. Like here: https://www.telerik.com/kendo-react-ui/components/dropdowns/props-context/

Ticket id: 1669853