title: simple javascript loop to sum grid column
body: <p>I need to create a javascript loop that will add the values from a each row (rowCount) of a table column and output the total (QT_BOX * rowCount = prodQty).  The rowCountupdates fine, but the prodQty always returns a value of 50.  I think I must be overlooking something, but can't seem tot find it...</p>
  
  <pre><code>function updateCounters(){
      var gridObject = document.BoxesGrid.getGridObject();
      var rowCount = gridObject.getRowCount();
      for(var i=0; i &lt;= rowCount; i++){
          var prodQty = gridObject.getCellValueByName(i, "QT_BOX");
          document.getElementById("QT_READ").value =prodQty;
          document.getElementById("QT_BOXES").value = rowCount;
      }       
  }
  </code></pre>