In the updated version of Syncfusion Blazor, there are some features like batch mode that is not automatically focus the cursor upon add. Ho to solve this problem? Is there need to update or install?
Hi Belle Perez,
Greetings from Syncfusion.
Please share the below details which will help us to validate further at our end and provide prompt solution.
Kindly share the details and get back to us if you need further assistance.
Regards,
Joshna L
Hi Belle,
We are not clear about the exact scenario you are facing the reported problem. We checked this with our online demo and when pressing the Add button in toolbar, the OrderID field in grid add form gets focused fine from our side. Please refer the sample from the link below,
https://blazor.syncfusion.com/demos/datagrid/batch-editing?theme=fluent
If you are still facing difficulties then the following details would be helpful for us to proceed further.
The provided information will help us analyze the problem, and provide you a solution as early as possible.
Note : It is also recommended to use the latest versions(20.1.0.59) for latest updates on Syncfusion component’s fixes and features.
Regards,
Renjith R
Hi Team,
I'm also having the same issue.. it only focuses in the 1st column when allow add was set to true and mode is batch. But what I need is that it should be set focus at the 2nd column. I don't need to have it focus in the 1st column since my primary key is auto generated by API.
It works in version 19 but does no longer work in version 20..
Hope you could check this out.
Best Regards,
Tyrone
Hi Tyrone,
We suggest you to achieve your requirement by setting AllowAdding and AllowEditing as false to the first column and it moves the focus to the second column. Kindly check the below attached code snippet for your reference.
|
<SfGrid DataSource="@Orders" AllowPaging="true" Toolbar="@(new List<string>() { "Add", "Delete", "Update", "Cancel" })" Height="315"> <GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="EditMode.Batch"></GridEditSettings> <GridColumns> <GridColumn Field=@nameof(Order.OrderID) HeaderText="Order ID" AllowAdding="false" AllowEditing="false" TextAlign="TextAlign.Right" Type="ColumnType.Number" Width="120"></GridColumn> <GridColumn Field=@nameof(Order.CustomerID) HeaderText="Customer Name" Width="120"></GridColumn> <GridColumn Field=@nameof(Order.OrderDate) HeaderText=" Order Date" EditType="EditType.DatePickerEdit" Format="d" TextAlign="TextAlign.Right" Width="130" Type="ColumnType.Date"></GridColumn> <GridColumn Field=@nameof(Order.Freight) HeaderText="Freight" Format="C2" TextAlign="TextAlign.Right" EditType="EditType.NumericEdit" Width="120"></GridColumn> <GridColumn Field=@nameof(Order.ShipCountry) HeaderText="Ship Country" IsPrimaryKey="true" EditType="EditType.DropDownEdit" Width="150"></GridColumn> </GridColumns> </SfGrid> |
If you still face issues then kindly share us the Nuget version used at your end.
Regards,
Monisha