How to access editor components using an instance when mode: 'Batch'?"
const onActionComplete=function(args) {
if (args.requestType === 'beginEdit' || args.requestType === 'add') {
const tableRow = args.row;
const numericTextBox = tableRow.querySelector('.e-numerictextbox');
if (numericTextBox) {
const numericTextBoxInstance = numericTextBox['ej2_instances'][0];
numericTextBoxInstance.element.style.backgroundColor = 'light pink';
numericTextBoxInstance.element.style.color = 'black';
numericTextBoxInstance.element.style.border = '2px solid red';
numericTextBoxInstance.element.style.textAlign = 'center';
numericTextBoxInstance.max = 1000;
numericTextBoxInstance.min = 1;
}
const dropDownList = tableRow.querySelector('.e-dropdownlist') ;
if (dropDownList) {
const dropDownListInstance = dropDownList['ej2_instances'][0];
dropDownListInstance.showPopup();
}
}
}