https://i.sstatic.net/UW17M.png
My goal is to display section status colors in a webgrid and divide them percentage-wise, but I am facing issues with some of the rows.
Here is the cshtml script for the webgrid section status:
webGrid.Column(header: "Section Status", format: @
<table class="" cellpadding="5" cellspacing="0" style="width: 100%;">
<tbody>
<tr>
<td id="inProgresswd" width="@item.InProgressPC%" title="@item.InProgressPC%"></td>
<td id="respPendingwd" width="@item.ResponsePendingPC%" title="@item.ResponsePendingPC%"></td>
<td id="revPendingwd" width="@item.ReviewPendingPC%" title="@item.ReviewPendingPC%"></td>
<td id="acceptedwd" width="@item.AcceptedPC%" title="@item.AcceptedPC%"></td>
<td id="rejectedwd" width="@item.RejectedPC%" title="@item.RejectedPC%"></td>
<td id="ftReciverwd" width="@item.FwdToRecieverPC%" title="@item.FwdToRecieverPC%"></td>
</tr>
</tbody>
</table>
, style: "SectionStatus"),
The color should be displayed percentage-wise and if the percentage is zero, the color should not appear in the grid. In the image provided, only four status colors should appear as they have percentage values of 25. However, five colors are showing up for the highlighted row.