sabarishbabu
Top achievements
Rank 1
sabarishbabu
asked on 30 Oct 2009, 12:01 PM
Hi,
How to display the Date in the header of Scheduler in theTime Line view? (Date to be displayed as in the Day view of the scheduler)Right now I am getting only the time period and not the date.
Thanks
Sabarish
4 Answers, 1 is accepted
0
sabarishbabu
Top achievements
Rank 1
answered on 04 Nov 2009, 04:47 AM
Hi,
Any update in this thread?
Thanks
Sabarish
0
Anand S
Top achievements
Rank 1
answered on 04 Nov 2009, 09:02 AM
Hi,
We have similar needs. Client wants to see the date also in the timeline view. (Similar to day view)
Are there any properties/customizations to get this ?
-Anand
We have similar needs. Client wants to see the date also in the timeline view. (Similar to day view)
Are there any properties/customizations to get this ?
-Anand
0
Accepted
Hello guys,
I could assume you have similar needs. :)
You should use the HeaderDateFormat property. For example:
<TimelineView HeaderDateFormat="dddd, MMMM dd, yyyy" />
Then, show just the first part of the header date using jQuery:
Best wishes,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
I could assume you have similar needs. :)
You should use the HeaderDateFormat property. For example:
<TimelineView HeaderDateFormat="dddd, MMMM dd, yyyy" />
Then, show just the first part of the header date using jQuery:
<script type="text/javascript"> function pageLoad() { var headerText = $telerik.$(".rsHeader h2").text(); var headerTextFirstPart = headerText.split("-")[0]; var scheduler = $find('<%=RadScheduler1.ClientID %>'); if (scheduler.get_selectedView() == Telerik.Web.UI.SchedulerViewType.TimelineView) { $telerik.$(".rsHeader h2").text(headerTextFirstPart); } } </script>Best wishes,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
sabarishbabu
Top achievements
Rank 1
answered on 04 Nov 2009, 12:09 PM
Hi Peter,
Thanks for your quick reply.
This is exactly what I want. Thanks for your help.
Thanks
Sabarish