Posted 15 June 2021, 11:13 am EST
Hello,
I want to change the title and the header:
- Title : add the current weeknumber at the end
- Day header: add the complete day name
Here is what I want to achieve:
How can I do that?
Thanks
Forums Home / ComponentOne / WinForms Edition
Posted by: fsegui on 15 June 2021, 11:13 am EST
Posted 15 June 2021, 11:13 am EST
Hello,
I want to change the title and the header:
Here is what I want to achieve:
How can I do that?
Thanks
Posted 16 June 2021, 2:36 am EST
Hi,
You can change the format of the Day header and the title using the Theme property of the C1Schedule as follows:
//change day header
c1Schedule1.Theme["DayViewDayName"].Format = "dddd, dd MMM";
//chage title info
c1Schedule1.Theme["Info"].Format = "dd MMM yyy";
Although you can not show the week number in the title directly, you can extend the C1Schedule and add a text element to show the week number and then use the SelectionChanged and BeforeTimeFormat event to update the week number.
Please refer to the sample attached and modify it according to your requirements.
Regards.
Avnish
Posted 17 June 2021, 3:51 am EST
Thanks a lot Avnish!
I did try to update with the theme properties but the list in your documentation seems to be incomplete (or I’m not at the right place):
Here is the list I’m talking about:
https://www.grapecity.com/componentone/docs/win/online-schedule/C1.Win.C1Schedule.4.5.2~C1.Win.C1Schedule.Localization.Strings+VisualStyle_members.html?highlight=timeruler%2C