or
public class MedicationChartEntry{ public string Name { get; set; } public int VerticalIndex { get; set; } public float? Dose { get; set; } public DateTime? Date { get; set; } public string DateFormatted { get; set; } public bool HasMarker { get; set; }}public class MedicationChartData{ public string MedicationName { get; set; } public List<MedicationChartEntry> MedicationEntries { get; set; }}public class ReDSChartData{ public float?[] Fluids { get; set; } public float?[] Weights { get; set; } public float?[] BNPs { get; set; } public string[] Dates { get; set; } public List<MedicationChartData> Medications { get; set; }}<div class="chart-wrapper">@(Html.Kendo().Chart<SensibleMedical.EDC.Models.MedicationChartEntry>(Model.ReDSChartData.Medications) .Name("Medications") .Title("Medications") .Legend(legend => legend.Position(ChartLegendPosition.Bottom)) .Series(series => { series .Line(Model.ReDSChartData.Medications[0].MedicationEntries) .Color("#0098ee") .Axis("Dose"); series .Line(Model.ReDSChartData.Medications[1].MedicationEntries) .Color("#0098ee") .Axis("Dose"); }) .CategoryAxis(axis => axis .Categories(model => model.DateFormatted) .Labels(labels => labels.Rotation(-45)) ) .ValueAxis(axis => axis .Numeric("Dose") .Color("#0098ee") .Min(0) .Max(70) ))</div>Hello,
Is it possible to have a DataSource read and combine from multiple json files?
Something like:
var ds1 = new kendo.data.DataSource({
transport: {
read: [
{ url: function() { return "data/Monday.json"; }, dataType: "json"},
{ url: function() { return "data/Tuesday.json"; }, dataType: "json"}
]
},
If not, is there an alternative that allows combining DataSources together?
//Update Revenue at Bid Gridvar UpdateRevenueGrid_Bid = function () { var grid = $("#RevenueBranchesAtBidGrid").data("kendoGrid"); grid.dataSource.read();};<script id="urgentRowTemplate" type="text/x-kendo-tmpl"> <tr class="urgent"> <td> ${name} </td> <td> ${reasonForCall} </td> <td> ${status} </td> </tr></script> <script id="normalRowTemplate" type="text/x-kendo-tmpl"> <tr class="normal"> <td> ${name} </td> <td> ${reasonForCall} </td> <td> ${status} </td> </tr></script><div id="layerTable" class="Part" data-role="grid" data-column-menu="true" data-filterable="true" data-sortable="true" data-scrollable="false" data-resizable="true" data-reorderable="true" data-groupable="true" data-editable="{confirmation: false}" data-bind="source: LayerTable" data-toolbar='["save","cancel"]' data-columns='[ "Class", "Type", "FileCount", {field: "Size", format: "{0:n3} MB", }, {field: "Date", format: "{0:F}" }, "Path", {command: "destroy"}, ]'></div>