I am going to create :enter key navigation" in sfgrid control for fast data entry purpose.for that I have check below link. Its working fine but when I apply empty datasource in grid then enter key navigation is not working. Please check below screencast and advise the same..
https://www.syncfusion.com/forums/164099/how-to-handle-enter-key-navigation-for-tab-index
screencast:
https://www.screencast.com/t/NSzl73fBmTW
Thanks for support...
Can we save current edited row when I press enter key on last column of current row ??
That means,before adding new row,the edited data should saved in grid datasource (list data source)
Please help in this regards..
|
<SfGrid @ref="GridRef" DataSource="@Orders" ...>
<GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="EditMode.Batch"></GridEditSettings>
<GridColumns>
...
<EditTemplate>
<SfTextBox ID="ShipCountry" @bind-Value="@((context as Order).ShipCountry)" OnBlur="OnBlur"></SfTextBox>
</EditTemplate>
</GridColumn>
</GridColumns>
</SfGrid>
@code{
SfGrid<Order> GridRef;
public async Task OnBlur()
{
await GridRef.EndEditAsync();
}
|
Thanks for help..
Actually "enter key" is key navigation in our erp application.i have set validation rule in second column but when I press enter key on first column ,the required validation is fired for second column
I Need to prevent required validation when I press enter key