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

batch edit mode - switch to edit mode on kepress event

1 Answer 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Dev asked on 11 Feb 2019, 01:45 PM
Hi. I have an editable grid in batch edit mode.
When I press enter on selected cell the cell switches to edit mode.
Is it possible to switch to edit mode and start writing on any key press like in the spreadsheet component?

Thanks and best regards

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 13 Feb 2019, 11:42 AM
Hello Renke,

In order to implement the functionality I would suggest handling the keydown event for the Grid. When the event is raised get reference of the currently focused cell can call the editCell method for it. 

$("#grid").on("keydown", function(e) {
    var grid = $("#grid").getKendoGrid();
 
    grid.editCell("td.k-state-focused");
});

Check out the dojo below that illustrates the approach:



Regards,
Viktor Tachev
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.
Tags
Grid
Asked by
Dev
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or