Hi, I'm new to Telerik ASP.NET Core, so maybe this is a simple task. I'm using Razor Pages and would like to hide the label from one field, how can this be done? From the switch field.
Thanks,
Humberto
@(Html.Kendo().Form<ProfileModel>()
.Name("formExample")
.FormData(Model?.Input)
.HtmlAttributes(new { method = "POST" })
.Layout("grid")
.Grid(g => g.Cols(1).Gutter(0))
.Items(items => {
items.AddGroup()
.Label("Security")
.Layout("grid")
.Grid(g => g.Cols(2))
.Items(i =>
{
i.Add()
.Field(f=> f.TFA)
.Editor(e => e.Switch());
});
})
.Validatable(v =>
{
v.ValidateOnBlur(false);
v.ValidationSummary(false);
v.ErrorTemplate("<span style='color: red'>#:message#</span>");
})
)