I have a RadGrid which has several column that are asp:DropDownList inside and itemtemplate. One of these dropdownlist has a selection that if selected needs to validate a RadDatePicker. All I need to do is have the RadDatePicker required if the dropdowlist has a certain value selected.
Listed below, if someone clicks on "Weekly-PM" I need to require the RadDateThru. Thanks for your help.
Listed below, if someone clicks on "Weekly-PM" I need to require the RadDateThru. Thanks for your help.
| <telerik:GridTemplateColumn HeaderText="Time" Groupable="false"> | |
| <ItemTemplate> | |
| <asp:DropDownList ID="DropDownListTime" AutoPostBack="true" runat="server"> | |
| <asp:ListItem Text="Not Set" Value="0" /> | |
| <asp:ListItem Text="Morning" Value="1" /> | |
| <asp:ListItem Text="Evening" Value="2" /> | |
| <asp:ListItem Text="Both" Value="3" /> | |
| <asp:ListItem Text="Now" Value="4" /> | |
| <asp:ListItem Text="Weekly-PM" Value="5" /> | |
| </asp:DropDownList> | |
| <asp:DropDownList ID="DropDownListDays" SelectionMode="Single" Enabled="false" runat="server"> | |
| <asp:ListItem Text="M" Value="2" /> | |
| <asp:ListItem Text="T" Value="3" /> | |
| <asp:ListItem Text="W" Value="4" /> | |
| <asp:ListItem Text="R" Value="5" /> | |
| <asp:ListItem Text="F" Value="6" /> | |
| </asp:DropDownList> | |
| </ItemTemplate> | |
| </telerik:GridTemplateColumn> | |
| <telerik:GridTemplateColumn HeaderText="Date" Groupable="false"> | |
| <ItemTemplate> | |
| <telerik:RadDatePicker ID="RadDateThru" MinDate="2000-2-1" runat="server"> | |
| <DateInput ID="DateInput1" runat="server" /> </telerik:RadDatePicker> | |
| </ItemTemplate> | |
| </telerik:GridTemplateColumn> |