Solved

Calendar object display-how to change the rows shown

Posted on 2008-10-22
4
311 Views
Last Modified: 2013-12-17
Hi,

I'm trying to display a calendar using c# asp.net. I have a basic calendar (see jpg attachment for picture) but I need to remove the column to the far left that has month and week written on them. Is there a way to do this?

My aspx code is below


I tried to remove             SelectWeekText="week"   SelectMonthText="month"

and was left with <<     >> in their place on the calendar, I need to totally remove this column.

Thanks

<asp:Calendar id="Calendar1"

     OnSelectionChanged="Date_Selected"

     SelectionMode="DayWeekMonth"

     Font-Name="Verdana" 

     Font-Size="12px"

     NextPrevFormat="ShortMonth"

     SelectWeekText="week"

     SelectMonthText="month"

     runat="server">
 

   <TodayDayStyle Font-Bold="True"/>

   <DayHeaderStyle Font-Bold="True"/>

   <OtherMonthDayStyle ForeColor="gray"/>

   <TitleStyle BackColor="#3366ff"

               ForeColor="white"

               Font-Bold="True"/>
 

   <SelectedDayStyle BackColor="#ffcc66"

                     Font-Bold="True"/>

   <NextPrevStyle ForeColor="white"

                  Font-Size="10px"/>

   <SelectorStyle BackColor="#99ccff" 

                  ForeColor="navy"

                  Font-Size="9px"/>

</asp:Calendar>

Open in new window

calendar.jpg
0
Comment
Question by:CharlieDev
  • 3
4 Comments
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 500 total points
ID: 22777095
remove all of the following
SelectionMode="DayWeekMonth"
SelectWeekText="week"
SelectMonthText="month"
0
 

Author Comment

by:CharlieDev
ID: 22777257
Awesome, thanks! :)
0
 

Author Comment

by:CharlieDev
ID: 22777940
Do you know what property I would use to change the size of the calendar, so that the calendar takes up 375 pixels by 250 px and also make each square that each date sits in larger to fill the larger calendar grid?
 
Many thanks
0
 

Author Closing Comment

by:CharlieDev
ID: 31508827
Thanks very much for such a speedy reply
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now