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

Header Date format - only today's date

1 Answer 38 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Indranik
Top achievements
Rank 1
Indranik asked on 11 Dec 2008, 09:19 AM
How can I show only the current date in the timelineview header date and discard the fromdate - todate format?

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 11 Dec 2008, 04:14 PM
Hi Indranik,

Here is how:
  protected void Page_PreRenderComplete(object sender, EventArgs e)  
    {  
        if (RadScheduler1.SelectedView == Telerik.Web.UI.SchedulerViewType.TimelineView)  
        {  
            LiteralControl weekViewHeaderLabel = (LiteralControl)RadScheduler1.FindControl("DateLabel");  
            weekViewHeaderLabel.Text = RadScheduler1.SelectedDate.ToString("D");  
 
        }  
    }   



Best wishes,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Indranik
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or