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

Custom format of Header Date Format

2 Answers 188 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Sangeeta
Top achievements
Rank 1
Sangeeta asked on 10 Dec 2014, 09:37 AM
 I used the RadScheduler and I create the HeaderDateFormat in WeekView. Its show the format like "This Week (MM/dd) - This Week (MM/dd)"  but I want the format like
"This Week (MM/dd-MM/dd)". I send the screen shot. I want the header date format according to SB-RadSheduler.png screen shot.

2 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 12 Dec 2014, 07:54 AM
Hi,

Here is a sample workaround that can help you achieve the issue:
<script type="text/javascript">
           function pageLoad() {
               var $ = $telerik.$;
               var $header = $(".rsHeader h2");
               var radScheduler = $find("<%=RadScheduler1.ClientID %>");
 
               if (radScheduler.get_selectedView() === Telerik.Web.UI.SchedulerViewType.TimelineView) {
                   $header.html("This Week (" + $header.html() + ")");
               }
           }
       </script>
 
       <telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="TimelineView" GroupBy="User" GroupingDirection="Vertical">
           <TimelineView NumberOfSlots="6" ColumnHeaderDateFormat="ddd(MM/dd)" HeaderDateFormat="MM/dd" />
       </telerik:RadScheduler>

Hope this will be helpful.

Regards,
Plamen
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
Sangeeta
Top achievements
Rank 1
answered on 12 Dec 2014, 11:17 AM
Yes, This is helpful.
Thanks.
Tags
Scheduler
Asked by
Sangeeta
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Sangeeta
Top achievements
Rank 1
Share this question
or