Select row in data grid2 programatically

0
Hi, I need to select the next row in a data grid after a button was clicked (wich executes a micro flow to update some data). I have managed to get a reference to the data grid on my page, find a row and click it with dijit.registry.byId(<id of data grid>)._gridRowNodes[1].click(); Now I want to do a similar thing with data grid2, but it does not have an id. So I am stuck with two questions: How can I get a reference to a data grid2 widget? How can I select a row in a data grid2 widget by script? Thanks for any help, Thomas   
asked
1 answers
0

Hi Thomas, 

Have a try with 

document.querySelectorAll(".mx-name-<name> .tr .clickable")[1].click()

 

Cheers, 

Andries

answered