Batch-Edit mode, toolbar update item does not get enabled

Hi there

  1. Working with the grid component edition in batch mode, when you update a cell and click away from the grid the update button does not enable, you can reproduce it in Syncfusion Blazor demos.
    The update button just enables when you click in another row.
  2. Working with the grid component edition in batch mode and with the column chooser in the toolbar. When performing the edition in a cell and clicking away then try to hide the edited column with the column chooser the column is not hidden till you click a non-editable column. 
  3. Then when you try to show the column the grid does not show the column till you click a row in the grid.
    The same is behavior happening when you add an item model to the toolbar to save the grid state. Edit a cell click away and reset the state of the grid and the reset does not happen till you click in a non-editable column

I am attaching gifs to reproduce the issues.
Also Attaching a demo project to reproduce all the described issues



3 Replies

AS Adriana Selena Tito Ilasaca August 3, 2021 02:58 AM UTC

Also Attaching a demo project to reproduce all the described issues


Attachment: SyncfusionGrid167794_2344c11.rar


VN Vignesh Natarajan Syncfusion Team August 3, 2021 06:51 AM UTC

Hi Adriana,  
 
Thanks for contacting Syncfusion support. 
 
Query1: “when you update a cell and click away from the grid the update button does not enable, 
 
We have analyzed the reported query and we are able to reproduce the reported issue at our end also. We have confirmed the reported query as a bug and logged the defect report “Need to enable Update button and save change in batch mode when grid edit mode is focused out for the same. Thank you for taking the time to report this issue and helping us improve our product. Fix for the defect will be included in our weekly release which is expected to be rolled out by mid of September 2021. We will update you once the release is rolled out.     
        
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.        
    
 
Till then we appreciate your patience. 
 
Query2 & 3:  Working with the grid component edition in batch mode and with the column chooser in the toolbar && Edit a cell click away and reset the state of the grid and the reset does not happen till you click in a non-editable column 
 
We have analyzed the reported query and we are able to reproduce the reported issue after upgrading to our latest version. we request you to resolve the reported issue by cancelling the edit action while resetting grid state or while hiding / showing the column using ColumnChooser.  
 
Refer the below code example.  
 
<SfGrid ID="Grid" @ref="GridInstance" AllowPaging="true" DataSource="@Orders" AllowReordering 
        Toolbar="@(new List<Object>() { "Cancel""Update""ColumnChooser", 
                       new ItemModel() { Text = "Reset",PrefixIcon = "e-click", Id = "Reset" }, 
                        new ItemModel() { Text = "SaveState",PrefixIcon = "e-click", Id = "Save" }})" 
        ShowColumnChooser="true"> 
    <GridSelectionSettings Mode="Syncfusion.Blazor.Grids.SelectionMode.Both"></GridSelectionSettings> 
    <GridEditSettings AllowEditing="true" Mode="EditMode.Batch"></GridEditSettings> 
    <GridEvents Created="Created" CellSelected="CellSelectHandler" OnActionComplete="ActionComplete" OnActionBegin="ActionBegin" OnToolbarClick="ToolbarClickHandler" TValue="Order"></GridEvents> 
    <GridColumns> 
        <GridColumn Field=@nameof(Order.OrderID) HeaderText="Order ID" TextAlign="TextAlign.Right" Width="120" IsPrimaryKey></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" AllowEditing="false"></GridColumn> 
        <GridColumn Field=@nameof(Order.ShipCountry) HeaderText="Ship Country" Width="150" AllowEditing="false"></GridColumn> 
    </GridColumns> 
</SfGrid> 
  
@code{ 
    SfGrid<Order> GridInstance { getset; } 
    private string _state; 
  
    public async Task ActionBegin(ActionEventArgs<Order> Args) 
    { 
        if (Args.RequestType == Syncfusion.Blazor.Grids.Action.ColumnState) 
        { 
            if (GridInstance.IsEdit) 
            { 
                await GridInstance.CloseEditAsync(); 
            } 
        } 
    } 
     
    public void ActionComplete(ActionEventArgs<Order> Args) 
    { 
        if (Args.RequestType == Syncfusion.Blazor.Grids.Action.ColumnState) 
        { 
            GridInstance.Refresh();             
        } 
    } 
  
. . . . .  
    public void ToolbarClickHandler(Syncfusion.Blazor.Navigations.ClickEventArgs args) 
    { 
  
        if (args.Item.Id == "Reset") 
        { 
            // check whether the grid is in edit state 
            if (GridInstance.IsEdit) 
            { 
                // call close edit to discard the changes and revert to its state 
                GridInstance.CloseEditAsync(); 
            } 
            GridInstance.ResetPersistData(); 
        } 
        if (args.Item.Id == "Save") 
        { 
            GridInstance.SetPersistData(_state); 
        } 
    } 
 
 
OnActionBegin and OnActionComplete event will be triggered when certain action gets initiated or completed in Grid. So while changing the column visibility state using ColumnChooser, these events will be triggered with RequestType ColumnState. Here we have checked for condition and resolve the reported issue.    
 
Please find the modified sample from below  
 
 
Refer our UG documentation for your reference 
 
 
Please get back to us if you have further queries.  
 
Regards, 
Vignesh Natarajan 
  



VN Vignesh Natarajan Syncfusion Team November 17, 2021 10:38 AM UTC

Hi Adriana 
 
We are glad to announce that we have resolved the reported issue in our release(19.3.0.47).  So please upgrade to our latest release or minimum of 19.3.0.47 version to resolve the reported issue. Please find the Nuget package from below.  
 
 
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.   
    
Regards,              
Vignesh Natarajan 
 


Loader.
Up arrow icon