close the calender popup in mouse leave

3 posts, 0 answers
  1. Mohammed
    Mohammed avatar
    87 posts
    Member since:
    Aug 2011

    Posted 04 Sep 2012 Link to this post

    Hi Team,
    I need to close the calender popup when the mouse leave it.
    regards,
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 04 Sep 2012 Link to this post

    Hi Mohammed,

    Following is the sample code that I tried to close the calendar popup when mouse leave it.

    ASPX:
    <telerik:RadDatePicker ID="RadDatePicker1" runat="server">
    </telerik:RadDatePicker>

    JS:
    <script type="text/javascript">
        $(document).ready(function () {
            $("#RadDatePicker1_calendar").mouseleave(function () {
                debugger;
                var RadDatePicker1 = $find("<%=RadDatePicker1.ClientID %>");
                RadDatePicker1.hidePopup();
            });
        });
    </script>

    Hope this helps.

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mohammed
    Mohammed avatar
    87 posts
    Member since:
    Aug 2011

    Posted 05 Sep 2012 Link to this post

    thanks very much Princy,
Back to Top