or
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><div data-role="modalview" id="MessageBeforeEnteringWebRes" style="padding:0.25em 1em 1em 1em;min-height:5em;max-height:20em;height:auto;"> <div data-role="header" style="border-bottom:1px solid #ccc" class="marginbottom1"><span>@Model.CurrentContext.Club.ClubName</span></div> <div style="overflow:scroll; -webkit-overflow-scrolling:touch; max-height:8em;" class="marginbottom1"> @MvcHtmlString.Create(Model.CurrentContext.Club.MessagesSettings.MessageBeforeEnteringWebRes) </div> @if (Model.CurrentContext.Club.MessagesSettings.AllowUserToDisableMessagesBeforeEnteringWebRes.ToString().ToLower() == "true") { <div id="UserEditDisableMessage" style="padding-left:0.5em;" class="marginbottom1"> <label for="DoNotDisplayMessage"><input type="checkbox" id="DoNotDisplayMessage" style="padding-right: 0.5em"/>Disable messages for future visits.</label> </div> } <div class="center marginbottom1"><input value="OK" id="btnDoNotDisplayMessage" onclick="onOKDoNotDisplayMessage()" class="button button1" type="button" style="width:5em"/></div> </div><div style="overflow:scroll; -webkit-overflow-scrolling:touch; max-height:8em;" class="marginbottom1"> @MvcHtmlString.Create(Model.CurrentContext.Club.MessagesSettings.MessageBeforeEnteringWebRes)</div>