HI,
Ive got the following partialview and index.html
Now i use kendo to get a diagram (with test data called --> data). How can i change data to the real column of the partialview? ( i actually got more partial views, but when i got the answer i can use that on all the partial views). thnx guys
partialview:
@using TelerikMvcApp1.Models
@model ProgramCollectorDataFilesStatus
@model ProgramCollectorDataFilesStatus
@(Html.Kendo().Grid()
.Name("CollectorGrid")
.Name("CollectorGrid")
.Columns(columns =>
{
columns.Bound(c => c.CollectorID).Groupable(true);
columns.Bound(c => c.LastStart);
columns.Bound(c => c.LastChecked);
columns.Bound(c => c.ServiceRunning);
columns.Bound(c => c.LastBatchID);
columns.Bound(c => c.BatchCompleted);
columns.Bound(c => c.BatchErrorID);
})
.Filterable()
.Sortable()
.Groupable()
.Pageable(pageable => pageable
.Refresh(true)
.PageSizes(true)
)
.BindTo(Model.CollectorStatus)
)
{
columns.Bound(c => c.CollectorID).Groupable(true);
columns.Bound(c => c.LastStart);
columns.Bound(c => c.LastChecked);
columns.Bound(c => c.ServiceRunning);
columns.Bound(c => c.LastBatchID);
columns.Bound(c => c.BatchCompleted);
columns.Bound(c => c.BatchErrorID);
})
.Filterable()
.Sortable()
.Groupable()
.Pageable(pageable => pageable
.Refresh(true)
.PageSizes(true)
)
.BindTo(Model.CollectorStatus)
)
index.html:
@using System.Web.Mvc.Html
@using TelerikMvcApp1.Controllers
@using TelerikMvcApp1.Models
@Html.Partial("_ProgramStatus")
@Html.Partial("_CollectorStatus")
@Html.Partial("_DataFilesStatus")
@using TelerikMvcApp1.Controllers
@using TelerikMvcApp1.Models
@model ProgramCollectorDataFilesStatus
@{
ViewBag.Title = "Home Page";
}
Batch Dashboard
ViewBag.Title = "Home Page";
}
Date last run
@Html.Partial("_ProgramStatus")
Collector statistics
@Html.Partial("_CollectorStatus")
Collector statistics
@Html.Partial("_DataFilesStatus")
Cassie ModPosted Jan 28, 2016, 7:44 AM