RadDatePicker

1 posts, 0 answers
  1. Prathyusha
    Prathyusha avatar
    10 posts
    Member since:
    Oct 2012

    Posted 08 Apr 2013 Link to this post

    <table>
           <tr>
               <td>
                   <asp:TextBox ID="txt" runat="server" TabIndex="0"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ValidationGroup="Goal"
                       ControlToValidate="txt" Display="None" ErrorMessage="Please select" SetFocusOnError="True"></asp:RequiredFieldValidator>
                   <cc1:ValidatorCalloutExtender HighlightCssClass="highlight" ID="ValidatorCalloutExtender1"
                       TargetControlID="RequiredFieldValidator1" runat="server">
                   </cc1:ValidatorCalloutExtender>
               </td>
           </tr>
           <tr>
               <td align="right">
                   <span class="error">*</span>Start Date :
               </td>
               <td align="left">
                   <telerik:RadDatePicker ID="radCalender" runat="server" TabIndex="1" Width="205">
                       <Calendar ID="Calendar4" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False"
                           ViewSelectorText="x" runat="server">
                       </Calendar>
                       <DateInput ID="DateInput4" DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy" runat="server">
                       </DateInput>
                   </telerik:RadDatePicker>
                   <asp:RequiredFieldValidator ID="rvCalender" runat="server" ControlToValidate="radCalender"
                       InitialValue="" Display="None" ValidationGroup="Goal" ErrorMessage="<%$Resources:CCMResource,USER_GOAL_STARTDATE %>"
                       SetFocusOnError="True"></asp:RequiredFieldValidator>
                   <cc1:ValidatorCalloutExtender HighlightCssClass="highlight" ID="vcCalender" TargetControlID="rvCalender"
                       runat="server">
                   </cc1:ValidatorCalloutExtender>
               </td>
           </tr>
           <tr>
               <td align="right">
                   <span class="error">*</span> Managed Population : 
               </td>
               <td align="left">
                   <telerik:RadComboBox ID="radComboManagedPopulationGoals" AppendDataBoundItems="true"
                       Width="200px" TabIndex="2" DataValueField="ProgramId" DataTextField="ProgramName"
                       runat="server">
                       <Items>
                           <telerik:RadComboBoxItem runat="server" Text="Select" Value="0" />
                           <telerik:RadComboBoxItem runat="server" Text="Item" Value="1" />
                       </Items>
                   </telerik:RadComboBox>
                   <asp:RequiredFieldValidator ID="rfvManagedPopulationGoals" runat="server" ValidationGroup="Goal"
                       ControlToValidate="radComboManagedPopulationGoals" InitialValue="Select" Display="None"
                       ErrorMessage="<%$Resources:CCMResource,Assignment_Select %>" SetFocusOnError="True"></asp:RequiredFieldValidator>
                   <cc1:ValidatorCalloutExtender ID="vdCManagedPopulationGoals" TargetControlID="rfvManagedPopulationGoals"
                       runat="server">
                   </cc1:ValidatorCalloutExtender>
               </td>
           </tr>
           <tr>
               <td>
                   <asp:Button ID="btn" runat="server" ValidationGroup="Goal" />
               </td>
           </tr>
       </table>
    Hi ,
    I have a Problem in raddatePicker.
    I have a form. In this, I have   RadDatePicker, RadCombobox and radbutton Controls and trhese are mandatory fields. on Button click it will call the Callout Extenders for mandatory Fields. In my Form First is RadDatePicker And next is RadCombobox.On buttonClick it showing first calloutoutextender for Radcombox instead of RadDatePicker. I want RaddatePicker's CalloutExtender will be called First and then rest of controls.

    Thanks in Advance.
Back to Top