Hi,
I am trying RequiredFieldValidator with RadDropDownList but i cannot manage to capture when no item is selected.
Please, see below the code which implements it.
It is possible that setting DefaultMessage causes that always there is an item selected and requiredfieldvalidator never notifies that?
<telerik:RadDropDownList ID="Indicator_Period" runat="server" DefaultMessage="Select period"> <Items> <telerik:DropDownListItem Text="Dayly" Value="d" /> <telerik:DropDownListItem Text="Monthly" Value="m" /> <telerik:DropDownListItem Text="Bimonthly" Value="b" /> <telerik:DropDownListItem Text="Three-monthly" Value="t" /> <telerik:DropDownListItem Text="Four-monthly" Value="c" /> <telerik:DropDownListItem Text="Six-monthly" Value="s" /> <telerik:DropDownListItem Text="Yearly" Value="a" /> </Items> </telerik:RadDropDownList> <asp:RequiredFieldValidator ID="Indicator_Period_RequiredFieldValidator" runat="server" ErrorMessage="*" ControlToValidate="Indicator_Period" ValidationGroup="AddIndicatorValidationGroup" ForeColor="Red"></asp:RequiredFieldValidator><telerik:RadButton ID="RadButton1" runat="server" Text="Save" ButtonType="StandardButton" OnClick="SaveIndicator" ValidationGroup="AddIndicatorValidationGroup"> <Icon PrimaryIconCssClass="rbSave" PrimaryIconLeft="4" PrimaryIconTop="4"></Icon> </telerik:RadButton>