Hi,
I have the following code to create a form, but when I submit it, I get a 400.
@(Html.Kendo().Form<ConfigurationModel>()
.Name(
"formExample"
)
.HtmlAttributes(
new
{ url = @Url.Action(
"ProductQuantity"
,
"Reports"
), method =
"POST"
})
.Items(items =>
{
items.Add()
.Field(f => f.SchoolProductQuantityReportSchoolId)
.Label(l => l.Text(
"School:"
))
.Hint(
"Select a school"
)
.Editor(b =>
b.ComboBox()
.DataTextField(
"Description"
)
.DataValueField(
"Id"
)
.DataSource(dataSource => dataSource
.ServerFiltering(
true
)
.Read(read => read.Action(actionName,
"School"
)
.Data(
"addAntiForgeryToken"
)))
);
})
My goal here is to not use Ajax, I want a full post back the old-fashioned way.
Thanks for your help.