Showing posts with label current. Show all posts
Showing posts with label current. Show all posts

Wednesday, March 21, 2012

CalendarExtender, want only current month date visible

hi all,

I have a problem, I want to display days of only current month or whichever month a user selects. I mean by default calendar extender shows all dates , even if we have selected November, it will show some days of previous month and some days of next month along with current month's dates. I only want to display current month's dates.

I applied css specified in http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Calendar/Calendar.aspx

but that's changing color of each day. I was thinking by using css somehow i will hide previous and next month days, but of not avail.

please suggest,

thanks...

Hi Forums_user,

As far as I know, it is not supported now unless you modify its source code. CalendarExtender generate all the days , months and years on the client, you can find it in its source code with the name _buildDays,_buildMonths and _buildYears.

I hope this help

Best regards,

Jonathan

CalendarExtender not shows days of month

I have a CalendarExtender in my page and the days are not showed, only the current month. My code is:

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><asp:ImageButton runat="Server" ID="ImageButton1" ImageUrl="~/App_Themes/Fruits/Images/Calendar_scheduleHS.png" AlternateText="Click to show calendar" /><ajaxToolkit:CalendarExtender ID="calendarButtonExtender" runat="server" TargetControlID="TextBox1" CssClass="MyCalendar" Format="dd/mm/yyyy" PopupButtonID="ImageButton1" PopupPosition="BottomRight"></ajaxToolkit:CalendarExtender>

I am not sure but try using dd/MM/yyyy as the format, as mm denotes minutes.


I have changed the format but the problem remains. I believe that the problem is due to style sheet because I am using an asp.net starter kit and I have had other problems with ajax controls. Their behaviour is different like AJAX samples.

Any idea?


Hi Cabezas,

How about create a new page and only put the necessary parts to the page? If it doesn't work, please check yourweb.config settings. Also, I suggest that you should change your timezone and have a test.

Best regards,

Jonathan