Show icon in datepicker

2 posts, 0 answers
  1. Tina
    Tina avatar
    130 posts
    Member since:
    Jul 2011

    Posted 02 Apr 2012 Link to this post

    How can I make a datepicker show warning symbol like  RadNumericTextBox ?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 02 Apr 2012 Link to this post

    Hi Tina,

    Here is a sample code snippet I tried to achieve warning symbol in RadDatePicker on button click. Please have a look into the following code.

    <telerik:RadDatePicker ID="RadDatePicker" runat="server"  ></telerik:RadDatePicker>
    <asp:Button ID="Button1" Text="Submit" runat="server" OnClientClick="OnClientClick(); return false;"/>

    <script type="text/javascript">
        function OnClientClick()
            var DatePicker = $find("<%= RadDatePicker1.ClientID %>");
            DatePicker.get_dateInput()._invalid = true;

Back to Top