How do I limit entry to just allow the MaxLength in the field? Yes, I get an error when I enter 4000 characters in a field... but, why does it accept 4000 characters? Is there a setting to limit/stop/truncate their entry?
<TelerikForm Model="@ContextLink" Class="gsi-padding-10">
<FormItems>
@if (IsDebug)
{
<FormItem Field="@nameof(ContextLink.Id)" LabelText="Id" Enabled="false" />
}
<FormItem Field="@nameof(ContextLink.Name)" LabelText="@nameof(ContextLink.Name)" Enabled="true" />
<FormItem Field="@nameof(ContextLink.Description)" LabelText="@nameof(ContextLink.Description)" Enabled="true" />
<FormItem Field="@nameof(ContextLink.RelativeUrl)" LabelText="@nameof(ContextLink.RelativeUrl)" Enabled="true" />
<FormItem Field="@nameof(ContextLink.ComponentFqn)" LabelText="@nameof(ContextLink.ComponentFqn)" Enabled="false" />
</FormItems>
<FormButtons />
</TelerikForm>
[MaxLength(50)]
[Required]
public string Name { get; set; }