Hi ALI,
Greetings from Syncfusion support.
Query: how to move focus on next cell or next column in a grid on enter key press event? && or how to disable enter key event?.”
We have validated your query and currently we do not have support to achieve your requirement. We have considered your requirement as a usability feature “Improvements for keyboard events in Blazor Grid”. We are always trying to make our products better and feature requests like yours are a key part of our product growth efforts. At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. Fix for the usability feature will be included in any of our upcoming releases.
You can also communicate with us regarding the open features any time using our Feature Report page.
Till then you can achieve your requirement (disable key event) using below solution using JavaScript function.
@inject IJSRuntime JSRuntime; <EjsGrid @ref="Grid" DataSource="@Orders" AllowPaging="true"> <GridEvents Created="Created" TValue="Order"></GridEvents> . . . . . . .. . .</EjsGrid> @code{ EjsGrid<Order> Grid; public List<Order> Orders { get; set; } public void Created() { JSRuntime.InvokeAsync<object>("KeyDownEvent",Grid.ID); }
[keyboard.js]
function KeyDownEvent(id) {
var gridobj = document.getElementById(id).ej2_instances[0];
gridobj.keyConfigs.enter = ""; //remove the current config of Enter key
}
|
Kindly get back to us if you have further queries.
Regards,
Vignesh Natarajan.