Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145504 | Jun 25,2019 10:09 PM UTC | Jun 26,2019 09:50 AM UTC | ASP.NET MVC | 1 |
![]() |
Tags: LinearGauge |
Controller.cs
DataTable dt = new DataTable();
dt.Columns.Add("Name");
dt.Columns.Add("FullName");
dt.Columns.Add("Stock");
dt.Columns.Add("MaxStock");
dt.Columns.Add("AvailableStock");
dt.Rows.Add(new Object[] { "T13", "PM01 T13", 1, 100, 34 });
.. . // Add more data
List<LinearData> gauges = new List<LinearData>();
foreach (DataRow row in dt.Rows)
gauges.Add(CreateLinearGauge(row));
ViewBag.GaugeData = gauges;
.CSHTML
@{
var count = 0;
foreach (LinearData gauge in ViewBag.GaugeData)
{
@(Html.EJ().LinearGauge("PointerGauge" + (++count))
)
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.