How could I get all rows collection by javascript in front-end,

I have tried 


            var gridRow = gridObj.GetRows();
gridObj.RootTable.GetRows()
gridObj.Rows;

None of them worked how to implement it!? 

            var gridRow = gridObj.GetRows();