Please understand the requirements through the video provided.
When you watch the video, when you press the button, the child row is "Add" and a value in the column "EQUIP NAME" of the child row is given at the same time.
I want 'cell focus' to automatically go to the next column, "TAG No," when this cell is given a value.
Is there a way to do this?
regards.
Mail address sent
: wrsec.73@partner.samsung.com
Hi TaeWook Kang,
Thanks for contacting Syncfusion support.
You can move the focus on the next cell when the first cell value is filled default by calling the “editCell” method inside the “batchAdd” event which will be triggered when a new row is added. Please refer to the below code example and API links for more information.
function batchAdd(e) { grid.editCell(0, 'CustomerID'); // “CustomerID” is the required field name }
|
API : https://ej2.syncfusion.com/documentation/api/grid/#editcell
https://ej2.syncfusion.com/documentation/api/grid/#batchadd
Please get back to us if you need further assistance on this.
Regards,
Pavithra S
I checked the answer you sent me.
But there's a little problem with the answer.
As you move to the parent row, the index of the row after BatchAdd changes.
Please take this into consideration and check.
Regards.
Hi TaeWook Kang,
Query#:-I want 'cell focus' to automatically go to the next column, "TAG No," when this cell is given a value.
From your query we suspect that you need to change the Focus of the cell instead of First cell. To achieve this we have suggested editCell method of the TreeGrid. If you want to dynamically change the row Index value of the editCell method, we suggest to use below code example:-
Refer to the below code:-
function batchAdd(args) { var rowInx = this.selectedRowIndex; var field = 'taskName'; this.editCell(rowInx, field); //using editCell method by passing rowInx and fieldName } |
If we misunderstood your query or your requirement is different from above, please share us the following details.
Regards,
Farveen sulthana T
Hi,
Thank you for your good reply.
However, the problem was not resolved.
An error occurs because the index of the dynamic Row could not be found.
I will attach a video of the problem I face by email.
I will also attach a video of the question to help you answer it.
Mail address sent
: wrsec.73@partner.samsung.com
Provides a version of the 'Syncfusion' package.
Syncfusion.DocIO.Net.Core ; 20.3.0.50
Syncfusion.EJ2.AspNet.Core ; 20.3.0.50
Syncfusion.EJ2.PdfViewer.AspNet.Core.Windo ; 20.3.0.50
Syncfusion.EJ2.Spreadsheet.AspNet.Core ; 20.3.0.50
Syncfusion.XlsIO.Net.Core ; 20.3.0.50
Syncfusion.XlsIORenderer.Net.Core ; 20.3.0.50
Syncfusion.DocIO.Net.Core ; 20.3.0.50
Regards.
Hi TaeWook Kang,
Thanks for the update.
Query: An error occurs because the index of the dynamic Row could not be found.
We checked your issue by preparing a sample with latest version(20.3.50), but we were unable to replicate the issue at our end.
Please refer to the below sample,
https://www.syncfusion.com/downloads/support/directtrac/general/ze/coresample_modify428826432
Please refer to the below video demo,
https://www.syncfusion.com/downloads/support/directtrac/general/ze/VIDEOD~2-1281157209
If you still facing issue after trying the above method, please provide the following information
The requested information will be helpful to proceed further
Regards,
Pon selva