Select theme:

Material 3

LengthValidator (Angular)link

This guide demonstrates how to use the LengthValidator component.

The LengthValidator will show its Text property unless the value of its Component is within the specified character length.

LengthValidator Propertieslink

NameTypeDefaultDescription
Namestring'lengthValidtor' + index suffixUnique name of LengthValidator.
Textstring'Invalid length'The text that the validator will display.
Minnumber/expressionThe minimum target character length.
Maxnumber/expressionThe maximum target character length.
ComponentstringnullThe Name of a input component.
Visibleboolean/expressiontrueIs the LengthValidator visible.

Usagelink

The LengthValidator is used to verify that value of an input component (e.g. TextBox) is within specified character length. You can specify Min, Max or both.

  1. Drag and drop a LengthValidator from the Radzen toolbox.
  2. Set its Component property via the dropdown.
  3. Set the Min and or Max property.
© 2016-2025 Radzen Ltd. All Rights Reserved.
Designed and developed with ❤️ in Radzen Blazor Studio.

Select theme:

Material 3