HOW TO MARK SELECTED DATE IN AJAX CALENDER CONTROL

Posted by Rahmankhan under ASP.NET AJAX on 8/29/2013 | Points: 10 | Views : 2743 | Status : [Member] | Replies : 2
HOW TO MARK SELECTED DATE IN AJAX CALENDER CONTROL ( I WANT MARK INDIAN HOLIDAY)




Responses

Posted by: Bandi on: 8/29/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Set the ondayrender event of the calendar object:

<asp:Calendar ID="Calendar1" runat="server" ondayrender="MyDayRenderer">Then in your code behind, you can check the date and set the color:


protected void MyDayRenderer(object sender, DayRenderEventArgs e)
{
if (e.Day.IsToday) -- Like this check for the Holiday list
{
e.Cell.BackColor = System.Drawing.Color.Aqua;
}

if (e.Day.Date == new DateTime(2011,5,1))
{
e.Cell.BackColor = System.Drawing.Color.Beige;
}
}

To Mark all selected dates in raddatepicker
http://www.telerik.com/community/forums/aspnet-ajax/calendar/how-to-mark-all-selected-dates-in-raddatepicker.aspx

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Rahmankhan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 8/29/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
refer the following demo explains you that marking holidays list in calendar
http://demos.devexpress.com/aspxschedulerdemos/Miscellaneous/Holidays.aspx

Did you get solution for these threads which was open by you... ? then mark those as answered
http://www.dotnetfunda.com/forums/thread15988-how-to-delete-duplicate-record-without-primary-key.aspx
http://www.dotnetfunda.com/forums/thread16064-real-time-example-in-constructor-and-destructor.aspx

This will help others to refer solution in correct direction....

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Rahmankhan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response