Unplanned
Last Updated: 23 Jan 2020 13:04 by ADMIN
Dan
Created on: 08 Nov 2016 16:47
Category: Grid
Type: Feature Request
2
Auto-focus the delete button in a batch edit grid
When navigating grid in Batch Edit mode using the keyboard, the delete button in the command column is triggered by pressing Enter twice. Once to toggle the cell editable and again to fire the button event. This behavior can be observed in the batch edit demo. It would be preferable to automatically toggle the button active upon entering the cell so the user only needs to click Enter once. This could either be new default behavior or an optional event 
1 comment
ADMIN
Alex Hajigeorgieva
Posted on: 23 Jan 2020 13:04

Hi,

You can achieve the desired behaviour at present by using the navigate event of the grid and programmatically focusing the button:

https://dojo.telerik.com/@bubblemaster/esAGaZOv/2

                       navigate: function(e){
                          if(e.element.hasClass("k-command-cell")){
                            setTimeout(function(){
                              e.element.find(".k-button").focus()
                            });                           
                          }
                        }

Kind Regards,
Alex Hajigeorgieva
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.