How do you modify the template of the day names?

5 posts, 0 answers
  1. Arash Emami
    Arash Emami avatar
    6 posts
    Member since:
    Mar 2010

    Posted 06 Apr 2010 Link to this post

    Hi, I would like to modify how the day names (i.e. Sunday, Monday, Tuesday, etc.) are displayed.  How would I go about doing that?  Thank you
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 09 Apr 2010 Link to this post

    Hello Arash,

    Thank you for your question.

    You can modify the names of the weeks by setting the Culture of the Calendar:

    calendar.Culture = new System.Globalization.CultureInfo("en-US")
    {
        DateTimeFormat = new System.Globalization.DateTimeFormatInfo()
        {
            AbbreviatedDayNames = new string[] { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" },
        }
    }

    If you have further questions please let us know.

    All the best,
    Konstantina
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
  4. Arash Emami
    Arash Emami avatar
    6 posts
    Member since:
    Mar 2010

    Posted 09 Apr 2010 Link to this post

    Hi, I want to modify the template of the day names only.

    It looks to me like both the day names and the numerical days are controlled by the same template - DayTemplate.

    I need to have a different template for the day headers (i.e. Sun, Mon, etc.).  They need to look different from how the actual days look.

    Can you please upload a hotfix that includes a 2nd template that controls just the day names?  Or, if there is an easier way to do it, let me know please.  It is needed for a project and we should have customer support available to us.  Thank you,

    Arash Emami
    Fox Home Entertainment
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 15 Apr 2010 Link to this post

    Hi Arash,

    Sorry for the misunderstanding.

    Attached I am sending you a sample project in which that is illustrated. It is achieved using DayTemplateSelector. You can find an example of its use in our online demos.

    If you need further assistance please let us know.

    Kind regards,
    Konstantina
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Arash Emami
    Arash Emami avatar
    6 posts
    Member since:
    Mar 2010

    Posted 15 Apr 2010 Link to this post

    Thank you Konstantina, that works well!
Back to Top
DevCraft banner