TimeRuler styling

6 posts, 0 answers
  1. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 12 Nov 2013 Link to this post

    Hi,

    actually with my RadScheduleView, I use a week view definition with the following parameters to have only 3 ranges of time, ie: 8am, 1pm and 6pm. Actually my control display 8:00, 13:00 and 18:00 and I would like to know if it's possible to replace those values by: AM. PM & Evening???

    Thank's
    Alain
  2. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 15 Nov 2013 Link to this post

    Hi Alain,

    You could reformat the hours in the WeekViewDefinition by applying a custom TimerulerMajorTickStringFormat. Please try the following code snippet:

    <telerik:WeekViewDefinition TimerulerMajorTickStringFormat="{}{0:h:mm tt}" />

    You can also check the ScheduleView Formatting article from our online help documentation.

    Hope this helps.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    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 WPF is Visual Studio 2017 Ready
  4. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 15 Nov 2013 Link to this post

    Hi Kalin,

    due to my date/time seetings, the AM/PM doesn't show, I juste see (8:00, 1:00 and 6:00)  :( I need to alway have the AM/PM/EVENING string and I cannot force my customers to have a specific date/time format so is there any solution?

    AM

    PM

    Evening


    Thank's
  5. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 18 Nov 2013 Link to this post

    Hello Alain,

    As another solution I can suggest that you use a custom TimeRulerItemStyleSelector in order to apply different Template that Includes AM or PM depending on the time before or after noon. Please see attached the sample project which demonstrates the exact approach, you can easily modify it in order to include another style for Evening as required.

    Hope this helps.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    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 >>
  6. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 18 Nov 2013 Link to this post

    Hi,

    wiith which version of VS the sample project was made???

    Thank's
    Alain
  7. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 19 Nov 2013 Link to this post

    Hi Alain,

    It was created with VS 2012. However I converted it to VS 2010, please see the attachment.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    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 >>
Back to Top
UI for WPF is Visual Studio 2017 Ready