I wonder if it's possible to make a RadzenTree required in a form ? I want to use the RadzenRequiredValidator, but from what I understand, you need to assign the Component attribute to the Name of the required Component, but RadzenTree doesn't have a Name attribute.
Here is an example of what I tried (It doesn't work cause the Name attribute doesn't exist):
<RadzenFieldset>
<RadzenTree Name="RequiredField"
AllowCheckBoxes="true"
Style="font-size: 0.9em;"
Data="@_updateDocumentForm.ClassificationViewModel.CategoriesTreeData"
@bind-CheckedValues="@_updateDocumentForm.ClassificationViewModel.CategoriesTreeValue">
<RadzenTreeLevel TextProperty="Description"
ChildrenProperty="Childs"
Expanded="@(c => IsExpanded((CategorieTreeDto)c))"
HasChildren="@(c => ((CategorieTreeDto)c).Childs?.Any() ?? false)" />
<RadzenTreeLevel TextProperty="Description" HasChildren="@(e => false)" />
</RadzenTree>
<RadzenRequiredValidator Component="RequiredField" Text="First name is required" Style="position: absolute" />
</RadzenFieldset>