Home ng-bootstrap progress bar not updating
Reply: 0

ng-bootstrap progress bar not updating

redOctober13
1#
redOctober13 Published in 2017-12-07 14:23:32Z

I'm using ng-bootstrap's progress bar, and while it renders initially, in my loop where I'm making some updates, neither the console.log nor the progress bar is updated until the function exits.

The body of the loop is updating cells in a jqWidgets grid, but I don't think there's anything there that would block, but I'm not sure how to debug this.

if (rowsToUpdate.length !== 0) {
          rowsToUpdate.forEach((rowIndex: number) => {
            this.dqGrid.setcellvalue(rowIndex, 'rejected', newRejectedFieldValue);
            numRowsUpdated += 1;
            if (numRowsUpdated % 10 === 0) {
              console.log(numRowsUpdated);
              this.savingProgress = Math.ceil(numRowsUpdated / rowsToUpdate.length * 100);
            }
          });
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.331412 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO