Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
590
Iterate through rows clientside
posted

How do I iterate through the rows of a WebDataGrid on the client side? 

I'm trying to add the ability to set a checkbox to checked (true) for all rows.

 

Parents
No Data
Reply
  • 3147
    Verified Answer
    posted

    Hi, you can iterate through the rows using the following sample code:

            function iterateRows()
            {
                var grid = $find('GridID');
                var gridRows = grid.get_rows()

                for (var i = 0; i < gridRows.get_length(); i++) {
                 var row = gridRows.get_row(i);
                }

            }
Children
No Data