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

Customize Hour Column and date format header

9 Answers 524 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Satyendra Tripathi
Top achievements
Rank 1
Satyendra Tripathi asked on 25 Mar 2010, 10:15 AM
Hi,

I have some questions regarding the customizations for Rad Scheduler:
    1. How can I show AM/PM (basically group on AM/PM) instead of showing hours separately?
    2. How can I customize the date header?
    3. How to disable single and double click on a row? I want to open a pop-up on the appointment pop-up?

I have attached the image to make my questions more clear.

Regards,
Ratnesh 

9 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 29 Mar 2010, 01:38 PM
Hello Satyendra,

Please, try the following RadScheduler configuration:

aspx:
<telerik:RadScheduler ShowAllDayRow="false" runat="server" ID="RadScheduler1" SelectedView="WeekView"
      FirstDayOfWeek="Monday" LastDayOfWeek="Friday" OverflowBehavior="Expand" ShowFullTime="true"
      HoursPanelTimeFormat="tt" OnTimeSlotCreated="RadScheduler1_TimeSlotCreated1">
      <WeekView HeaderDateFormat="dddd d, MMM " ColumnHeaderDateFormat="dddd, MMMM d" />
  </telerik:RadScheduler>

code-behind:
protected void RadScheduler1_TimeSlotCreated1(object sender, TimeSlotCreatedEventArgs e)
   {
       RadScheduler scheduler1 = (RadScheduler)sender;
       if (scheduler1.SelectedView == SchedulerViewType.WeekView)
       {
           if (e.TimeSlot.Start.TimeOfDay.Hours < 12)
               e.TimeSlot.CssClass = "AMstyle";
           else
               e.TimeSlot.CssClass = "PMstyle";
       }
   }

css:
<style type="text/css">
     .AMstyle
     {
         background: #ccff00 !important;
     }
     .PMstyle
     {
         background: #ccaa00 !important;
     }
 </style>

Let me know if you need any other adjustments for your requirements.


Kind regards,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Satyendra Tripathi
Top achievements
Rank 1
answered on 08 Apr 2010, 09:47 AM
Thanks for help.

Can we remove all day row and customize the date header as per image in initial post?

Regards,
Ratnesh
0
Peter
Telerik team
answered on 13 Apr 2010, 05:01 PM
Hi Satyendra,

Please, set ShowAllDayRow="false" for RadScheduler to remove the all day row.

As for the date header format, I am not sure what exactly you need to acheive. In my previous reply, I suggested you try:

    <WeekView HeaderDateFormat="dddd d, MMM " ColumnHeaderDateFormat="dddd, MMMM d" />

Doesn't this bring about the desired result?

Best wishes,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Satyendra Tripathi
Top achievements
Rank 1
answered on 19 Apr 2010, 11:23 AM
Hi,

The issue I am facing is not with the Date format but with the look and feel template we want to implement.
If you look, we want a read-only text box in between the backward and forward navigation buttons.

Do you support templates in header in the latest version?

Regards,
Ratnesh
0
Peter
Telerik team
answered on 19 Apr 2010, 04:44 PM
Hi Satyendra,

Thanks for clarifying. Currently, we do not support header templates, but it is in our to-do list for the future.


Cheers,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Rachana
Top achievements
Rank 1
answered on 03 Feb 2015, 06:04 AM
Hi ,

I am facing an issue with radTimeslotsScheduler.MonthView.ColumnHeaderDateFormat = ddd-dd (trying to display e.g. Feb-03
also tried dddd,dd format didn't work.
Please guide.
0
Hristo Valyavicharski
Telerik team
answered on 05 Feb 2015, 04:37 PM
Hi Rachana,

Use  MonthView-ColumnHeaderDateFormat="MMM-M"

Custom Date and Time Format Strings


Regards,
Hristo Valyavicharski
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.

 
0
Mark
Top achievements
Rank 1
answered on 26 Feb 2016, 10:53 AM
Is this change available in latest version or is it still in to-do list. ?
0
Hristo Valyavicharski
Telerik team
answered on 29 Feb 2016, 12:49 PM
Hi Mark,

This property is available in the latest version. It uses standard aspnet date format string.
https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx

Regards,
Hristo Valyavicharski
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Scheduler
Asked by
Satyendra Tripathi
Top achievements
Rank 1
Answers by
Peter
Telerik team
Satyendra Tripathi
Top achievements
Rank 1
Rachana
Top achievements
Rank 1
Hristo Valyavicharski
Telerik team
Mark
Top achievements
Rank 1
Share this question
or