How to change scheduler and calendar region in telerik

2 posts, 0 answers
  1. Novice
    Novice avatar
    1 posts
    Member since:
    Jan 2014

    Posted 20 Jan 2014 Link to this post

    Hi telerik tim . My question is : how to change scheduler and calendar region and how to change month or day name in telerik.
    Can I change the default date. as today's date in my country in 1392 = 2014 . how can I change these.
    Thank you for everything.
  2. George
    Admin
    George avatar
    500 posts

    Posted 23 Jan 2014 Link to this post

    Hi Novice,

    Thank you for contacting us.

    You can change the culture by setting the Culture property of RadScheduler: 
    this.scheduler.Culture = CultureInfo.GetCultureInfo("de-DE");

    You can change the month name in the header cells by accessing the cell directly and changing its text. You can use the following code:
    (this.scheduler.SchedulerElement.ViewElement as SchedulerDayViewElement).HeaderElement.GetCells()[1].Text = "TEXT";

    You can change the StartDate as follows:
    this.scheduler.GetDayView().StartDate = DateTime.Today.AddYears(-20);

    I hope this helps.

    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top