or
<script>I really don't like having to edit my page each time the database has a new series added.
function createChart() {
$("#chart").kendoChart({
theme: $(document).data("kendoSkin") || "default",
dataSource: {
transport: {
read: {
url: "_list/series_list/all_series",
dataType: "json"
}
}
},
title: {
text: "my series"
},
legend: {
position: "top"
},
seriesDefaults: {
type: "line"
},
series: //USE A TEMPLATE HERE SO FOR EACH NAME IN THE JSON A SERIES IS CREATED.
[{
field: "value",
}
],
categoryAxis: {
field: "date",
labels: {
rotation: -90
}
},
valueAxis: {
labels: {
format: "{0:N3}"
},
majorUnit: 1
},
tooltip: {
visible: true,
format: "{0:N3}"
}
});
}
$(document).ready(function() {
setTimeout(function() {
createChart();
// Initialize the chart with a delay to make sure
// the initial animation is visible
}, 400);
});
</script>
I know how to add an menu item to an existing item but I would like to know how to add an item to the menu root.
Here's the code I have so far:
var MainMenu = $("#MainMenu").kendoMenu({ animation: { open: { effects: "fadeIn" }, close: { effects: "fadeIn" } }});MainMenu.append({ text: "New Root Item" }, MainMenu);
http://odata.site.com/USDA.svc/GetNutritionalInfo?ndbno=1001&seq=107&servingsize=1var url = "/support/markasread/" + support_id + "/";var url = "/support/newticketpost/";<div id="grid"></div> <script> $(document).ready(function() { $("#grid").kendoGrid({ dataSource: { transport: { read: { url: "'.$url.'", type: "post", dataType: "json" } }, schema: { model: { fields: { sel: { editable: false }, CODE: { type: "string" }, TYPE: { type: "string" }, CATEGORY_NAME: { type: "string" }, ARTICLE_NAME: { type: "string" }, } } }, pageSize: 60 }, height: 450, scrollable: true, groupable: true, sortable: true, filterable: true, pageable: true, selectable: "multiple row", columns: [{ field: "sel", template: "#= kendo.toString(\'<input type=\"checkbox\" id=\"select\" value=\"CODE\" />\') #", filterable: false, sortable: false, width: 50 }, "CODE", "TYPE", "CATEGORY_NAME", { field:"ARTICLE_NAME", filterable: true } ] }); }); </script>