Updating cell programmatically causes other cells not to be edited

Hello,


When I am updating a cell programmatically the cell updates just fine but then no other cell is able to be edited. this is what I am calling to update the cell.
this.grid.updateCell(args.rowIndex, args.field, args.value);


Below is an error I get when trying to edit any other cells after this.



13 Replies

NS Nithya Sivaprakasam Syncfusion Team June 13, 2022 01:48 PM UTC

Hi Charles,


Greetings from Syncfusion support.


Currently, we are validating your query and we will update further details on or before June 14, 2022.


Until then, we appreciate your patience.


Regards,

Nithya Sivaprakasam.



NS Nithya Sivaprakasam Syncfusion Team June 14, 2022 04:20 PM UTC

Hi Charles,


Thanks for your patience.


By analyzing your query, we could see that you are updating the cells programmatically using the updateCell method. We tried to replicate the reported problem by using the cellSaved event at our end but it was unsuccessful. It was working fine. So, before providing a solution to your query, we need some more information for our clarification. Please share the below details that will be helpful for us to validate further at our end.


  1. Please share the event which you have used for updating the cells.
  2. If possible, please share the issue reproducible sample.


The above details will be very helpful for us to provide a better solution as soon as possible.


Regards,

Nithya Sivaprakasam.



CE Charles Eichelberger June 14, 2022 08:25 PM UTC

Hello,


I will work on getting you a sample, but we are calling it in the onChange event of a dropdownlist.




NS Nithya Sivaprakasam Syncfusion Team June 15, 2022 05:00 PM UTC

Hi Charles,


Thanks for the update.


We will try to replicate your problem by using change event in the drop down list and we will update further details on June 17, 2022.


Until then, we appreciate your patience.


Regards,

Nithya Sivaprakasam.



NS Nithya Sivaprakasam Syncfusion Team June 17, 2022 05:05 PM UTC

Hi Charles,


We need extra time to prepare a sample and we will update further details on or before June 21, 2022.


Until then, we appreciate your patience.


Regards,

Nithya S.



NS Nithya Sivaprakasam Syncfusion Team June 21, 2022 08:35 AM UTC

Hi Charles,


Thanks for your patience.


While trying to prepare the sample for your query, we can reproduce the reported behavior when we execute the updateCell method on the edit cell. If the cell is in edit mode, we should not execute the updateCell method on it before saving the cell. It may raises some issues in Grid. This is the behavior of Grid.


If you want to update the same cell when selecting a value from the dropdown, you need to save the cell before executing the updateCell method. Else it will raise issues in Grid.


saveCell: https://ej2.syncfusion.com/angular/documentation/api/grid/#savecell


          select: function (e) {

            setTimeout(() => {

              this.grid.saveCell();

            });

          }.bind(this),

 


If you want to update other columns value on the dropdown change, you can execute the updateCell method in that event.



          change: function (e) {

            this.grid.updateCell(1, 'CustomerID', 'test');

          }.bind(this),

 


Sample: https://stackblitz.com/edit/angular-msanxr?file=app.component.html,app.component.ts

Please get back to us if you need further assistance.


Regards,

Nithya Sivaprakasam.



CE Charles Eichelberger replied to Nithya Sivaprakasam June 21, 2022 02:06 PM UTC

Hello,


This makes sense for dropdown lists however I am also trying to get a popup dialog box for editing that would update the cell value when the popup is closed.



NS Nithya Sivaprakasam Syncfusion Team June 22, 2022 06:10 PM UTC

Hi Charles,


Thanks for the update.


Before we start providing a solution to your query, we need more information for our clarification. Please share the below details that will be helpful for us to provide a better solution.


  1. Please share the grid rendering code.
  2. If possible, please share the issue reproducible sample.


The above details will be very helpful for us to provide a better solution as per your requirement.


Regards,

Nithya Sivaprakasam.



CE Charles Eichelberger June 23, 2022 01:36 PM UTC

Hello,


Unfortunately I am unable to share the code with you. The requirement we have is to open a dialog with a textbox when a cell is being edited. When the dialog is closed the cell's value will be updated with whatever was inside the textbox.



NS Nithya Sivaprakasam Syncfusion Team June 24, 2022 06:39 PM UTC

Hi Charles,


We need some more time to prepare a sample and we will update further details within two business days (28-06-2022).

Until then, we appreciate your patience.


Regards,

Nithya Sivaprakasam.



CE Charles Eichelberger replied to Nithya Sivaprakasam June 25, 2022 06:32 AM UTC

Thank you for the update 



JC Joseph Christ Nithin Issack Syncfusion Team June 29, 2022 12:36 AM UTC

Hi Charles,


Sorry for the inconvenience caused.


We are working on your query, we need some more time to prepare a sample and we will update further details within two business days (01-07-2022). Until then, we appreciate your patience.


Regards,

Joseph I.



JC Joseph Christ Nithin Issack Syncfusion Team July 4, 2022 12:09 AM UTC

Hi Charles,


  Thanks for your patience.


  Before proceeding to the solution we would like you to share the following details so that we can provide a better solution ASAP.


  • Please ensure your requirement is, when you edit a cell you want a dialog box to be opened and when you edit the textbox and close the dialog box the cell should be updated?
  • Please share the edit mode you are using (Inline, Batch or DIalog)?
  • Please share a screenshot or video demo of the issue you are facing.
  • Please share a simple sample if any you are using.
  • Please share the Syncfusion package version you are using.


Please get back to us for further details.


Regards,

Joseph I.


Loader.
Up arrow icon