or
[{ Name: "Program 1", selectedClient: null, clients: clients}, { Name: "Program 2", selectedClient: null, clients: clients}, { Name: "Program 3", selectedClient: null, clients: clients}]<div id="tabStrip" data-role="tabstrip" data-bind="source: myModel" data-text-field="Name"data-content-field="myTemplate"> </div><script type="text/x-kendo-template" id="myTemplate"> <div> <div class="window-row"> <div class="form-label">Client:</div> <div id="clientDropDown" data-role="combobox" data-filter="contains" data-bind="value: selectedClient, source: clients" data-text-field="Name" data-value-field="Id" data-min-length="3" /> </div> </div></script>
@(Html.Kendo().MultiSelect().Name("BaPaymentMachine").Placeholder("Please choose BA").DataTextField("Id").DataValueField("Id").DataSource(ds => ds.Read("GetAllBaPayment", "Report")).HtmlAttributes(new { @style = "width:200px;" }))public class SearchViewModel{ public List<string> BaPaymentMachine { get; set; }}[HttpGet][OutputCache(Duration = 0)]public ActionResult _GetReportPartial(SearchViewModel model){ do stuff to model return PartialView(model);}var ba = $("#BaPaymentMachine").val(); alert("ba:" + ba); $.ajax({ type: "GET", url: '@Url.Action("_GetReportPartial", "Report")', data: { BaPaymentMachine: ba }, cache: false, success: function (data) { var newBox = "<div id='reportmap' class='width:100%'>" + data + "</div>"; $("#result").html(newBox); $(".loaderrepport").fadeOut("slow"); }, error: function () { showerror("There was a problem getting the values, please try again."); $(".loaderrepport").fadeOut("slow"); } }); });var chart = $("#SalesChart").data("kendoChart");chart.refresh({ data: { "FromDate": $("#FromDate").data("kendoDatePicker").value(), "ToDate": $("#ToDate").data("kendoDatePicker").value() }});Function GetSalesByDate(salesByDate As BO.Models.Statistics.SalesByDate) As JsonResult Return Json(BO.Factory.Statistics.GetSalesByDateData(BO.Factory.Statistics.GetSalesByDate)) End Function@code Dim SalesChart As Kendo.Mvc.UI.Chart(Of BO.Models.Statistics.SalesTimeSpan) = _ Html.Kendo.Chart(Of BO.Models.Statistics.SalesTimeSpan).Legend(False). Name("SalesChart").Title("Units sold").Series(Sub(series) series.Line(Function(model) model.Value, categoryExpression:=Function(model) model.Period). Aggregate(ChartSeriesAggregate.Avg) End Sub). CategoryAxis(Function(axis) axis.Date().BaseUnit(ChartAxisBaseUnit.Days)). DataSource(Function(ds) ds.Read(Function(read) read.Action("getsalesbydate", "statistics", New With {.area = String.Empty}))) SalesChart.Render() End Codevar list = [];$.post('get_all_teaor', function(data){ $.each($.parseJSON(data), function() { list.push("(" + String(this.id) + ") " + String(this.teaor_name) + "|"); });});$("#business_branch").focus(function() { $(".foo").html(list); console.log(typeof(list)); console.log(list.length); $('#business_branch').kendoAutoComplete({ dataSource: list, placeholder: "Kérem várjon ..." });});