or
<div data-role="view" data-title="Form Unexpected but nice" data-init="ns.viewA.init" data-before-show="ns.viewA.beforeShow" data-show="ns.viewA.show" data-model="ns.viewA.viewModel"> ... <select data-bind="source:options,value:selectedOption" data-text-field="display" data-value-field="id"></select> ...</div><div data-role="view" data-title="Form Expected" data-init="ns.viewB.init" data-before-show="ns.viewB.beforeShow" data-show="ns.viewB.show" data-model="ns.viewB.viewModel"> ... <form> ... <select data-bind="source:options,value:selectedOption" data-text-field="display" data-value-field="id"></select> ... </form></div>01.var historyTransport = {02. read: function (options) {03. $.ajax({04. url: "../../AppData/Batch/History.json",05. dataType: "json", 06. success: function (response) {07. // notify the data source that the request succeeded08. console.log('successfully load History.json');09. var rows = [];10. $.map(response.rows, function (n,i) {11. var obj = { status: n.cell[0] };12. rows.push(obj);13. 14. });15. var historyData = {};16. historyData.rows = rows;17. options.success(historyData);18. 19. },20. error: function (response) {21. // notify the data source that the request failed22. console.log('failed to load History.json');23. }24. });25. }26.}Object {rows: Array[7675], page: 1, total: 1, records: "1"} function createSalesChart() { return $("#report-sales-chart").height(400).kendoChart({ title: "Sales Report Chart", dataSource: chart_data, autoBind: false, seriesDefaults: { type: "line", stack: false, missingValues: "interpolate" }, series: [ { field: "Gross_Total", name: "Gross Total", groupNameTemplate: "#= group.value # (#= series.name #)", //name: "#= group.value # (#= series.name #)", groupName: "#= group.value #", axis: "currency" } ], categoryAxis: { field: "Date", baseUnit: "days", labels: { format: "MMM", skip: 4, step: 4 } }, valueAxis: { name: "currency",/* autoScale: true, AutoScale: true, autoscale: true,*/ color: "blue", labels: { format: currency_prefix+"{0}"+currency_suffix }, //min:0, //max:1000 }, legend: { position: "bottom" }, tooltip: { visible: true, format: "0" }, plotArea:{ background: "#EEE" } }); }@Html.DropDownListFor(model => model.AccountTypeID, new SelectList((System.Collections.IEnumerable)ViewBag.AccountTypesDD, "Key", "Value"), new { @class = "k-combobox" })
<a href="<%= organizations_categories_shops_path(@category) %>"><a href="/#/organizations/<%= @organization.id %>/categories/<%= category.id %>/shops">