This is a migrated thread and some comments may be shown as answers.

TimeRuler styling

5 Answers 28 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Christie Admin
Top achievements
Rank 1
Christie Admin asked on 12 Nov 2013, 08:07 PM
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

5 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 15 Nov 2013, 03:02 PM
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 >>
0
Christie Admin
Top achievements
Rank 1
answered on 15 Nov 2013, 03:30 PM
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
0
Kalin
Telerik team
answered on 18 Nov 2013, 03:46 PM
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 >>
0
Christie Admin
Top achievements
Rank 1
answered on 18 Nov 2013, 04:28 PM
Hi,

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

Thank's
Alain
0
Kalin
Telerik team
answered on 19 Nov 2013, 08:35 AM
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 >>
Tags
ScheduleView
Asked by
Christie Admin
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Christie Admin
Top achievements
Rank 1
Share this question
or