getRows

Hi!

How can I do this, from ej grid, in ej2 grid?



So, I want to loop the grid rows and check/change the data.

thanks!

Bernard.

1 Reply 1 reply marked as answer

RR Rajapandi Ravi Syncfusion Team June 17, 2021 12:10 PM UTC

Hi Bernard, 

Greetings from syncfusion support 

Based on your query we could see that you like to get the Rows in EJ2. You can get the Grid Rows by invoking the getRows() method. Please refer the below code example for more information. 

 
var gridObj = document.getElementById('Grid').ej2_instances[0] //Grid Instance 
var getRows = gridObj.getRows(); //get the grid rows by invoking getRows() method      
 


If you like to customize the appearance of the cells. You can also achieve your requirement by using queryCellInfo event of Grid. Please refer the below documentation for more information. 



Please refer the below document for more information. This article describes the API migration process of Grid component from Essential JS 1 to Essential JS 2. 


Regards, 
Rajapandi R 


Marked as answer
Loader.
Up arrow icon