or
var dsOrderHis = null; $(document).ready(function() { args.startDate = startDate;
args.endDate = endDate; args.filterBy = filterBy; args.userIds = userIds; dsOrderHis = new kendo.data.DataSource( { transport: { read: { cache: false, url: appUrl + "/Services/ArgosyDashBoardService.svc/orderHistory", dataType: "json", contentType: "application/json; charset=utf-8", type: "POST" }, parameterMap: function(options, operation) { return JSON.stringify(args) } }, schema: { data: "OrderHistoryResult" }, change: function() { var dataCount = $("#LoadOrderHistoryDiv").data("kendoChart").dataSource.view().length; if (dataCount <= 0) { setTimeout("LoadOrderHistoryHideSvg();", 400) } else {
$("#LoadOrderHistoryDiv svg").each(function() { $(this).fadeIn() }); setTimeout("LoadOrderHistoryAddIcon();", 100) } } }); $('#LoadOrderHistoryDiv').kendoChart({ theme: currentTheme, title: { text: 'Order: History' }, dataSource: dsOrderHis, legend: { position: "bottom" }, series: [{ type: "line", field: "YAxis"}], categoryAxis: { field: "XAxisLabel", labels: { rotation: 42} }, tooltip: { visible: true, template: " #= value # orders placed in #= category # .", padding: 9 }, legend: { visible: false} }) });//used for data changesfunction LoadOrderHistory() { var chart = $("#LoadOrderHistoryDiv").data("kendoChart"); args.startDate = startDate; args.endDate = endDate; args.filterBy = filterBy; args.userIds = userIds; kendo.ui.progress($("#LoadOrderHistoryDiv"), true); chart.dataSource.read() } <table id="grid"> <colgroup> <col style="width:50px" /> <col style="width:25px" /> <col style="width:25px" /> </colgroup> <thead> <tr> <th>Hour</th> <th>10 AM</th>etcetera
<ul data-role="buttongroup" data-index="0" data-bind="select: deliveryMethodChanged"> <li> Email </li> <li> Download </li></ul>