
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
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
0
Hi Alain,
You could reformat the hours in the WeekViewDefinition by applying a custom TimerulerMajorTickStringFormat. Please try the following code snippet:
You can also check the ScheduleView Formatting article from our online help documentation.
Hope this helps.
Regards,
Kalin
Telerik
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 >>
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
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
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
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 >>
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
wiith which version of VS the sample project was made???
Thank's
Alain
0
Hi Alain,
It was created with VS 2012. However I converted it to VS 2010, please see the attachment.
Regards,
Kalin
Telerik
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 >>
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 >>