This is a migrated thread and some comments may be shown as answers.

postback when date is selected

2 Answers 93 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 20 Feb 2012, 01:36 PM
How t avoid postback in radcalendar when a date is selected.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 Feb 2012, 01:47 PM
Hello,

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

Thanks,
Princy.
0
Vasil
Telerik team
answered on 20 Feb 2012, 02:47 PM
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 >>
Tags
Calendar
Asked by
Tina
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Vasil
Telerik team
Share this question
or