Week Interval Calendar Rule

7 posts, 0 answers
  1. simeon
    simeon avatar
    12 posts
    Member since:
    Sep 2008

    Posted 30 Nov 2011 Link to this post

    Hi,
     
    Is there a way to set the calendar rule for the week number when showing week intervals on the timebar?

    Cheers,

    Simeon
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 05 Dec 2011 Link to this post

    Hello Simeon,
    Currently, there is no way to change the rule, with the exception of modifying the source code of the control, of course. Currently, we are extracting the number of the week the following way:
    CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(date, CalendarWeekRule.FirstFourDayWeek, CultureInfo.CurrentCulture.DateTimeFormat.FirstDayOfWeek)

    Regards,
    Tsvetie
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. simeon
    simeon avatar
    12 posts
    Member since:
    Sep 2008

    Posted 05 Dec 2011 Link to this post

    Thanks for the reply but I have decided against using the timebar for what I want to do at this point.  But going forward it would be nicer if you could set the calendar week rule and the first day of the week, like on the scheduler component, via properties without us having to change the control's source code as I think that would get a bit sticky for us.

    Cheers,

    Simeon

     



  5. Jinsong
    Jinsong avatar
    1 posts
    Member since:
    Jan 2013

    Posted 10 Jan 2013 Link to this post

    Hi Tsvetie,

    I'd like to know if there is any upgrade to Timebar? I'm looking for an approach to set the first day of week for the Timebar, to make a week from Saturday to Friday.

    Thanks,
    Jin
  6. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 14 Jan 2013 Link to this post

    Hello Jin,

    In short, no, the feature is not available yet. We will consider adding support for changing the first day of the week for Q2 2013.

    Greetings,
    Tsvetie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  7. Beata Szyda
    Beata Szyda avatar
    2 posts
    Member since:
    Aug 2012

    Posted 12 Jan 2015 in reply to Tsvetie Link to this post

    Hello,
    Is there any news about this topic? Has this been corrected in any of the latest versions of controls?

    Best regards,
    Beata.
  8. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 14 Jan 2015 Link to this post

    Hello Beata,

    You can use a custom interval to get this behavior. Check out our online documentation and sdk sample (you may want to use the sdk samples browser).

    Regards,
    Petar Marchev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
DevCraft banner