or
var newDataSource = new kendo.data.DataSource({ data: GLOBAL_ALL_PIE_DATA[controlID] }); var chartConfiguration = { theme: $(control).attr("theme"), title: { text: $(control).attr("title") }, legend: { position: $(control).attr("position") }, seriesDefaults: { labels: { visible: $(control).attr("showLabels"), format: "{0}%" } }, dataSource: newDataSource, series: [{ type: "pie", categoryField: "category", field: "value", colorField: "color" }], tooltip: { visible: $(control).attr("showTooltip"), format: "{0}%" } }; //create the chart $(jqControlID).kendoChart(chartConfiguration); } }}var viewModel = kendo.observable({ gridSource: [// Grid Data ], cityDataSource: [// City dropdown data ]});[WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public ADVBrokerList[] GetADVBrokerList() { try { string jsonData = string.Empty; objService = new SourceDataServices(); ADVBrokerList[] data = objService.GetADVBrokerList(); return data; } finally { objService = null; } }var dataSource = new kendo.data.DataSource({ transport: { read: { // the remote service url contentType: "application/json; charset=utf-8", type: "POST", dataType: "json" } }, // -- END OF TRANSPORT // describe the result format schema: { data: "d" }, change: function () { // subscribe to the CHANGE event of the data source $("#main").html(kendo.render(template, this.view())); } }); // -- END OF DATASOURCE BLOCK dataSource.read();Hi All,
We're experiencing a problem with the DatePicker control that ships with Kendo when using jQuery validation that ships with ASP.NET MVC. This is my best attempt at describing the problem:
When using jquery.validation that ships with MVC, and you call $(‘form’).valid() it marks the outer span of the datepicker (the one with the k-datepicker class on it) with the error class. Then, when you validate the form again (i.e: change another field, or click save), the jquery.validation goes and removes any element with the .error class (not sure why, just the way it works). Because this class was put onto the datepicker itself, calling .hide() actually removes the datepicker from view.
Any ideas on how to solve this?