Scroll To Specific Row in Grid

Hi,

I am using following way to load data into the grid:

grid.data.load(<URL>);

grid.data.events.on("Load", function () {
         grid.scrollTo(id, "EmployeeName");        
});

Here scroll to specific row is not working. And after everything is loaded completely and I try to run grid.scrollTo(id, “EmployeeName”); using console, then it takes me to specific row, but not using above code.

Please correct me if I am missing something.

Thanks,
Arpita

Please, try to wrap the scrollTo method in the awaitRedraw:
https://docs.dhtmlx.com/suite/helpers__await_redraw.html

grid.data.load(<URL>);

grid.data.events.on("Load", function () {
dhx.awaitRedraw().then(function() {
         grid.scrollTo(id, "EmployeeName");     
})   
});

Thanks a lot @sematik . It’s working fine :slightly_smiling_face: