postback when date is selected

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

    Posted 20 Feb 2012 Link to this post

    How t avoid postback in radcalendar when a date is selected.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 20 Feb 2012 Link to this post

    Hello,

    Try the following javascript.
    JS:
    function OnDateSelected(sender, args)
    {
      sender.set_autoPostBack(false);
    }

    Thanks,
    Princy.
  3. Vasil
    Admin
    Vasil avatar
    1593 posts

    Posted 20 Feb 2012 Link to this post

    Hi Tina,

    The Princy's solution should work.

    Another possible way would be to set AutoPostBack="false" for your calendar.
    <telerik:RadCalendar runat="server" ID="RadCalendar1" AutoPostBack="false">
    </telerik:RadCalendar>

    Regards,
    Vasil
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top