Datepicker

3 posts, 0 answers
  1. jude
    jude avatar
    4 posts
    Member since:
    Sep 2011

    Posted 07 Oct 2011 Link to this post

    I am using datepicker inside telerik window. The problem is when i close the window after opening the datepicker, the opened portion of datepicker still exists and window gets closed. Plz help.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 10 Oct 2011 Link to this post

    Hello Jude,

    You can use the following javascript to achieve the scenario.

    ASPX:
    <telerik:RadWindow ID="RadWindow1" runat="server" OnClientClose="onclose">
     <ContentTemplate>
     <telerik:RadDatePicker ID="RadDatePicker1" runat="server"></telerik:RadDatePicker>
     </ContentTemplate>
    </telerik:RadWindow>

    JS:
    <script type="text/javascript">
    function onclose()
    {
      var datepicker = $find('<%=RadDatePicker1.ClientID %>');
      datepicker.hidePopup();
    }
    </script>

    Thanks,
    Princy.
  3. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 10 Oct 2011 Link to this post


Back to Top