{code}@using System.Globalization@using Kendo.Mvc.UI@using Kendo.Mvc.UI.Fluent@using My.Dashboard.Results.Domain.Entities@model My.Dashboard.Web.Models.GraphSettingsViewModel<div id="weeklyResultsForSpecificYearChart-wrapper" style="width:100%"> @(Html.Kendo().Chart<WeeklyResult>() .Name("WeeklyResultForSpecificYearChart") .Theme("MetroBlack") .Tooltip(new Action<ChartTooltipBuilder>(t => t.Visible(true).Template("#=value# #=series['name']# Results For week number #=category#"))) .Title("Weekly Results for " + Model.Year.ToString(CultureInfo.InvariantCulture)) .Legend(legend => legend.Position(ChartLegendPosition.Bottom)) .DataSource(dataSource => dataSource.Read(read => read.Action("GetAllWeeklyResultsForSpecificYear", "Result", new { year = Model.Year }))) .Series(series => { series.Column(model => model.FranceResults).Name("France").Stack("All"); series.Column(model => model.NorthAmericaResults).Name("North American").Stack("All"); series.Column(model => model.ItalyResults).Name("Italy").Stack("All"); }) .CategoryAxis(axis => axis .Categories(model => model.Week) .Labels(labels => labels.Rotation(-90))) .CategoryAxis(axis => axis .Labels(model => model.Format("{0:0}"))))</div>.CategoryAxis(axis => axis.Categories(model => model.FirstMondayOfWeek).Labels(labels => labels.Rotation(-90))) .CategoryAxis(axis => axis .Labels(model => model.Format("dd")))).CategoryAxis(axis => axis .Categories(model => model.Week) .Labels(labels => labels.Rotation(-90))) .CategoryAxis(axis => axis .Labels(model => model.Format("{0:0}")))).Tooltip(new Action<ChartTooltipBuilder>(t => t.Visible(true).Template("#=value# #=series['name']# Results For #=FirstMondayOfWeek#")))Hi,
Is it possible to data-bind a form submit? I know how to bind on button click but I would like to know if I can bind for form submit e.g <form data-bind='submit: handleSubmit'></form>.
Regards,
dataSource => dataSource.Ajax().Data("sendData")dataSource => dataSource .Ajax() .Read(read => read.Action("Products_Read", "Home") .Data("additionalData") // name of the client function that returns the additional data )We have a datepicker on an MVC view, rendered per this snippet:
@(Html.Kendo().DatePicker() .Name("criteriaDate") .Depth(CalendarView.Year) .Format(Model.DateFormat) .Max(Model.RangeEnd.DateTime) .Min(Model.RangeStart.DateTime) .Value(Model.RangeStart.DateTime) .HtmlAttributes(new { style = "width:100%;" }))Everything works fine when the view is rendered directly, but when another site attempts to show it in an iframe we are seeing this error in the Visual Studio debugger: Unhandled exception at line 25, column 9190 in http://localhost/site/Scripts/kendo.all.min.js, which is in the toFront function on the "s=document.activeElement" line. The result is that the datepicker control doesn't render on the page.
I didn't see anything on this topic, so any help would be appreciated. Thanks in advance...