Schedule change title/dayheader

Posted by: fsegui on 15 June 2021, 11:13 am EST

    • Post Options:
    • Link

    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

  • 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

    ScheduleHeader.zip

  • 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

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels