I have only 1 script manager,1 update panel, 1 textbox and 1 CalendarExtender. My calendar works fine but it shows only 5 days in a week. I don't use any width value for it.
My understanding of your issue is that your calendar works fine expect 5 days late than normal. If I have misunderstood , please let me know.
Based on my knowledge, I think your problem is mainly caused by the reasons below, please check it.
<div mce_keep="true">Has your system time is setted correctly (The time of the server which host your application)?</div>
<div mce_keep="true">Has you modified the current time in your code?</div>
If these don't work, please provide a sample which contains the problem so that we can troubleshoot in your shoes.
Best regards,
Jonathan
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
It is a werid question for me , would you please post your simple sample which contains your problem ? Thanks
Best regards,
Jonathan
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
Here is the screen shot. Also is there any global configuration for the calendar. I don't mean CurrentCulture, but I'd want that all my calendar extensions would start weeks as Monday. So I would not need to update all the components in my webpage
i ve the same problem only five days on my calendar . Very Strange i download the websample with the ajax toolkit and the calendar works well with 7 days.
But when i try to do it on my website there is only five days . Don´t understand very much .......
<asp:TextBox ID="TextBox1" runat="server" Width="419px"></asp:TextBox>
<asp:ImageButton ID="imgFchFinEv" runat="server" AlternateText="Click to show calendar"
CssClass="img" ImageUrl="~/Images/Calendar_scheduleHS.png" />
<b>Calendar with an associated button:</b><br />
<asp:TextBox runat="server" ID="Date5" />
<asp:ImageButton runat="Server" ID="Image2" ImageUrl="~/images/Calendar_scheduleHS.png" AlternateText="Click to show calendar" />
The problem is most likely your style sheet. If you have any padding specified on your TD's this will cause the calendar control to not fit. I am still trying to figure out how to declare the calendarextender so that you can declare a global TD padding,
but exclude the calendarextender from using it.
sourvil
Member
8 Points
77 Posts
CalendarExtender shows only 5 day in a week?
Aug 17, 2007 11:16 AM|LINK
I have only 1 script manager,1 update panel, 1 textbox and 1 CalendarExtender. My calendar works fine but it shows only 5 days in a week. I don't use any width value for it.
How can i fix it?
Regards..
Jonathan She...
All-Star
31269 Points
3445 Posts
Re: CalendarExtender shows only 5 day in a week?
Aug 21, 2007 01:48 AM|LINK
Hi Sourvil,
My understanding of your issue is that your calendar works fine expect 5 days late than normal. If I have misunderstood , please let me know.
Based on my knowledge, I think your problem is mainly caused by the reasons below, please check it.
If these don't work, please provide a sample which contains the problem so that we can troubleshoot in your shoes.
Best regards,
Jonathan
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
sourvil
Member
8 Points
77 Posts
Re: CalendarExtender shows only 5 day in a week?
Aug 22, 2007 07:01 AM|LINK
Hi Jonathan,
Thanks for your reply. My problem is: I see 5 days in Calendar from left to right. I can't see the 2 days on the right side.
My calendar shows for August like this:
Mo Tu We Th Fr
30 31 1 2 3
6 7 8 9 10
13 14 15 16 17
20 21 22 23 24
27 28 29 30 31
Today August 22,2007
Any suggest?
Regards..
Jonathan She...
All-Star
31269 Points
3445 Posts
Re: CalendarExtender shows only 5 day in a week?
Aug 22, 2007 07:13 AM|LINK
Hi Sourvil,
It is a werid question for me , would you please post your simple sample which contains your problem ? Thanks
Best regards,
Jonathan
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
pyhavaim
Member
5 Points
7 Posts
Re: CalendarExtender shows only 5 day in a week?
Nov 02, 2007 09:10 AM|LINK
Here is the screen shot. Also is there any global configuration for the calendar. I don't mean CurrentCulture, but I'd want that all my calendar extensions would start weeks as Monday. So I would not need to update all the components in my webpage
antonio01
Member
2 Points
1 Post
Re: CalendarExtender shows only 5 day in a week?
Nov 22, 2007 05:52 PM|LINK
i ve the same problem only five days on my calendar . Very Strange i download the websample with the ajax toolkit and the calendar works well with 7 days.
But when i try to do it on my website there is only five days . Don´t understand very much .......
My code :
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainCopy" Runat="Server">
<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1"
runat="server" EnableScriptGlobalization="True" EnableScriptLocalization="True">
</ajaxToolkit:ToolkitScriptManager>
<asp:TextBox ID="TextBox1" runat="server" Width="419px"></asp:TextBox>
<asp:ImageButton ID="imgFchFinEv" runat="server" AlternateText="Click to show calendar"
CssClass="img" ImageUrl="~/Images/Calendar_scheduleHS.png" />
<b>Calendar with an associated button:</b><br />
<asp:TextBox runat="server" ID="Date5" />
<asp:ImageButton runat="Server" ID="Image2" ImageUrl="~/images/Calendar_scheduleHS.png" AlternateText="Click to show calendar" />
<ajaxToolkit:CalendarExtender
ID="CalendarExtender1" runat="server" CssClass="MyCalendar" PopupButtonID="Image2"
TargetControlID="Date5"/>
<br />
</asp:Content>
mrtsherman
Member
31 Points
21 Posts
Re: CalendarExtender shows only 5 day in a week?
Feb 24, 2008 11:30 PM|LINK
The problem is most likely your style sheet. If you have any padding specified on your TD's this will cause the calendar control to not fit. I am still trying to figure out how to declare the calendarextender so that you can declare a global TD padding, but exclude the calendarextender from using it.
mrtsherman
Member
31 Points
21 Posts
Re: CalendarExtender shows only 5 day in a week?
Feb 24, 2008 11:38 PM|LINK
Add this to your stylesheet:
div.ajax__calendar_days table tr td
{
padding-right:0px;
}
This guy gets one hundred million points for figuring this out in such an easy way.
pyhavaim
Member
5 Points
7 Posts
Re: CalendarExtender shows only 5 day in a week?
Oct 08, 2008 05:55 AM|LINK
Yes, the problem was that My CSS did some formating for the table layout, and thus it screwed up the calendar control
crosscompile...
Member
40 Points
34 Posts
Re: CalendarExtender shows only 5 day in a week?
Nov 19, 2008 11:51 AM|LINK
use this in your css to resolve:
div.ajax__calendar_days table tr td{padding-right: 0px;}
div.ajax__calendar_body{width: 215px;}
div.ajax__calendar_container{width: 215px;}
http://www.vic-fontaine.com/