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.
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.
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.
The above details will be very helpful for us to provide a better solution as soon as possible.
Regards,
Nithya Sivaprakasam.
Hello,
I will work on getting you a sample, but we are calling it in the onChange event of a dropdownlist.
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.
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.
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
|
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.
|
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.
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.
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.
The above details will be very helpful for us to provide a better solution as per your requirement.
Regards,
Nithya Sivaprakasam.
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.
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.
Thank you for the update
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.
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 get back to us for further details.
Regards,
Joseph I.