ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Display percentage progress bar in HTML Table Row in AngularJS<p>Hi rani,</p> <p>Check this example. Now please take its reference and correct your code.</p> <p><strong><span style="text-decoration: underline;">HTML</span></strong></p> <div class="demo_block"> <pre class="brush: html">&lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&gt; &lt;head runat=&#34;server&#34;&gt; &lt;title&gt;&lt;/title&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.8/angular.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34;&gt; var app = angular.module(&#39;MyApp&#39;, []); app.controller(&#39;MyController&#39;, function ($scope) { $scope.Products = [ { Name: &#34;Gas&#34;, Liters: 5000, Remaining: 4000 }, { Name: &#34;Oil&#34;, Liters: 25000, Remaining: 18000 }, { Name: &#34;Fuel&#34;, Liters: 15000, Remaining: 13000 } ]; for (var i = 0; i &lt; $scope.Products.length; i++) { $scope.Products[i].Percentage = Math.round(parseInt(100) - ((parseInt($scope.Products[i].Remaining) / parseInt($scope.Products[i].Liters)) * parseInt(100))); } }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div ng-app=&#34;MyApp&#34; ng-controller=&#34;MyController&#34;&gt; &lt;table border=&#34;1&#34; cellpadding=&#34;1&#34; cellspacing=&#34;1&#34;&gt; &lt;tr&gt; &lt;th&gt;Name&lt;/th&gt; &lt;th&gt;Liters&lt;/th&gt; &lt;th&gt;Remaining&lt;/th&gt; &lt;th&gt;Percentage&lt;/th&gt; &lt;/tr&gt; &lt;tr ng-repeat=&#34;product in Products&#34;&gt; &lt;td&gt;{{product.Name}}&lt;/td&gt; &lt;td&gt;{{product.Liters}}&lt;/td&gt; &lt;td&gt;{{product.Remaining}}&lt;/td&gt; &lt;td style=&#34;width: 200px;&#34;&gt; &lt;div ng-style=&#34;{&#39;width&#39; : &#39;100%&#39;,&#39;background-color&#39;:&#39;#E9E9E9&#39; }&#34;&gt; &lt;div ng-style=&#34;{&#39;width&#39; : product.Percentage+&#39;%&#39;,&#39;background-color&#39;:&#39;#337AB7&#39;,&#39;text-align&#39;: &#39;center&#39; }&#34;&gt; &lt;span style=&#34;color: White;&#34;&gt;{{product.Percentage}}%&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;</pre> </div> <p><a class="demo button orange btn btn-red">Demo</a></p>https://www.aspforums.net:443/Threads/875369/Display-percentage-progress-bar-in-HTML-Table-Row-in-AngularJS/https://www.aspforums.net:443/Threads/875369/Display-percentage-progress-bar-in-HTML-Table-Row-in-AngularJS/Fri, 12 Jul 2019 05:49:10 GMT