It seems that property settings are ignored.
- Switch is supposed to say YES/NO but no text is visible.
- NumericTextBox Max, Min, Step are all ignored.
My form:
@(Html.Kendo().Form<
Customer
>()
.Name("form")
.HtmlAttributes(new { action = "Layout", method = "POST" })
.Validatable(v =>
{
v.ValidateOnBlur(true);
v.ValidationSummary(vs => vs.Enable(true));
})
.Items(items =>
{
items.AddGroup()
.Label("Registration")
.Grid(g => g.Cols(1).Gutter(10))
.Items(i =>
{
i.Add()
.Field(f => f.Name)
.Label(l => l.Text("Name:").Optional(false));
i.Add()
.Field(f => f.TwoFactorEnabled)
.Label(l => l.Text("Multi-factor Required:"))
.Editor(e =>
{
e.Switch().Messages(c => c.Checked("YES").Unchecked("NO"));
});
});
items.AddGroup()
.Label("Licensing")
.Items(i =>
{
i.Add()
.Field(f => f.MaximumUserCount)
.Label(l => l.Text("Maximum User Count:").Optional(true))
.Editor(e =>
{
e.NumericTextBox().Max(1000).Min(0).Format("n0").Decimals(0).Step(10);
});
i.Add()
.Field(f => f.LicenseActivationTimestamp)
.Label(l => l.Text("License Activation:").Optional(true))
.Editor(e => e.DatePicker()
.HtmlAttributes(new {style = "width: 100%", title = "datepicker"})
//.Format("MM/dd/yyyy")
.DateInput(true));
i.Add()
.Field(f => f.LicenseRenewalTimestamp)
.Label(l => l.Text("License Renewal:").Optional(true))
.Editor(e => e.DatePicker()
.HtmlAttributes(new { style = "width: 100%", title = "datepicker" })
.Format("MM/dd/yyyy")
.DateInput(true));
});
})
.Events(ev => ev.ValidateField("onFormValidateField").Submit("onFormSubmit").Clear("onFormClear"))
)