Print Page | Close Window

Custom WorkWeek View column text

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=7659
Printed Date: 27 November 2024 at 1:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Custom WorkWeek View column text
Posted By: simus
Subject: Custom WorkWeek View column text
Date Posted: 25 July 2007 at 5:21am
Hi,
 
Doing the following

//Display the Work week view force all days as working day

//Then the display will one column by day and each hour for each day

axCalendarControl1.Options.WorkWeekMask = XtremeCalendarControl.CalendarWeekDay.xtpCalendarDayAllWeek | XtremeCalendarControl.CalendarWeekDay.xtpCalendarDaySaSu ;

axCalendarControl1.ViewType = XtremeCalendarControl.CalendarViewType.xtpCalendarWorkWeekView;

axCalendarControl1.DayView.DayHeaderFormatLong = "dddd";

axCalendarControl1.DayView.DayHeaderFormatMiddle = "dddd";

axCalendarControl1.DayView.DayHeaderFormatShort = "dddd";

axCalendarControl1.DayView.DayHeaderFormatShortest = "dddd";

axCalendarControl1.Populate();

axCalendarControl1.DayView.EnableHScroll(false);

axCalendarControl1.DayView.ScrollToWorkDayBegin();

 
I have the attached bitmap as result.
 
 
What I would like is to remove the day number and have only Monday, Tuesday and so on.
 
Can anyone tell me how it is possible?
 
Thanks and Best regards!



Replies:
Posted By: cjprb
Date Posted: 25 July 2007 at 10:08am
I guess you are using a CalendarThemeOffice2007.
 
In the setup for the calender, you ask to have events for the left part of the dateheader for dayviews.
 
AskItemTextFlags.SetFlag(xtpCalendarItemText_DayViewDayHeaderLeft)
 
In the event GetItemText write the following code
 
If itemparams.Item = xtpCalendarItemText_DayViewDayHeaderLeft then itemparams.text = ""
 
 
Regards
 
Claus Pedersen


Posted By: simus
Date Posted: 25 July 2007 at 10:19am
Thanks



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net