This example demonstrates how to validate the selection of RadListBox. Each listbox
is validated using RequiredFieldValidator control. If the user does not select an
item the validators will fail and show their error message.
Click the "Search Offers" button to trigger validation.
ASPX
<telerik:RadListBox runat="server" ID="RadListBox1">
<Items>
<telerik:RadListBoxItem Text="Apartments" />
<telerik:RadListBoxItem Text="Campings" />
<telerik:RadListBoxItem Text="Hotels" />
<telerik:RadListBoxItem Text="Hostels" />
<telerik:RadListBoxItem Text="Rooms" />
<telerik:RadListBoxItem Text="Villas" />
</Items>
</telerik:RadListBox>
<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1"
ErrorMessage="Please, select item!" ControlToValidate="RadListBox1" />