Hi all,
We have a single select DropDown. When the user selects an item, it is added to a list. How do we show the RequiredValidator when that list has 0 items? In order to inform the user to add items using the DropDown. The validator below is not working.
<RadzenTemplateForm TItem="Model"
Data="_model"
Submit="OnSubmit">
<RadzenDropDown TValue="Resource"
Data="_resources"
Change="o => AddSelected((Resource)o)"
TextProperty="Id"
Name="DropDown"/>
<RadzenRequiredValidator Component="DropDown"
Text="Select resources"
Visible="_model.SelectedResources.Count == 0"/>
<RadzenButton ButtonType="ButtonType.Submit" Text="Submit"/>
</RadzenTemplateForm>
Thanks!
Ben