I'm relatively new to MVC and Kendo controls, so please bear with me.
I have a datatable with one row and five values (columns). How can I bind this datatable to the mmHg bulletchart in the dataviz chart demo?
My HomeController.cs looks like this. How would my complete index.schtml look like?
Thanks for the help.
I have a datatable with one row and five values (columns). How can I bind this datatable to the mmHg bulletchart in the dataviz chart demo?
My HomeController.cs looks like this. How would my complete index.schtml look like?
namespace RfPrMvcKendo.Controllers
{
public class HomeController : Controller
{
//
// GET: /Home/
public ActionResult Index()
{
DataTable table = new DataTable();
table.Columns.AddRange(new DataColumn[] {
new DataColumn("Counter1", typeof(int)),
new DataColumn("Counter2", typeof(int)),
new DataColumn("Counter3", typeof(int)),
new DataColumn("Counter4", typeof(int)),
new DataColumn("Counter5", typeof(int)) });
table.Rows.Add(10, 25, 31, 45, 80);
return View(table);
}
}
}