or
{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,