Solved

Calendar object display-how to change the rows shown

Posted on 2008-10-22
4
325 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

732 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