How to access editor components using an instance when mode Batch

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();

      }

    }

}



1 Reply

AR Aishwarya Rameshbabu Syncfusion Team November 13, 2024 03:39 PM UTC

Hi Zhong, 


Greetings from Syncfusion support.


A ticket regarding this query has already been generated under your Syncfusion account. Please refer to that ticket for any further updates.


Regards

Aishwarya R


Loader.
Up arrow icon