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

Scheduler HeaderTitle

1 Answer 118 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 12 Aug 2010, 05:31 PM
Is there a way to hard code a header title to the Scheduler?

So, rather than a pair of dates in the format "dd dddd" or "dd/mm", for example, having a title of "Calendar"?
If not, can you hide the top header, but still display the individual headers for each day?
The ShowHeader flag hides both sets of headers when I set it to False

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Dobry Zranchev
Telerik team
answered on 16 Aug 2010, 07:59 PM
Hi Andy,

Thank you for contacting us.

You could subscribe for the LayoutUpdated event of the upper header element in timeline view. In this event you could set the custom text to this element. Here is a sample snippet:
Copy Code
SchedulerTimelineViewElement element = this.radScheduler1.SchedulerElement.ViewElement as SchedulerTimelineViewElement;
element.Header.Children[0].LayoutUpdated += new EventHandler(LayoutUpdated);
 
void LayoutUpdated(object sender, EventArgs e)
{
    SchedulerTimelineViewElement element = this.radScheduler1.SchedulerElement.ViewElement as SchedulerTimelineViewElement;
    SchedulerHeaderCellElement headerElement = element.Header.Children[0] as SchedulerHeaderCellElement;
    headerElement.Text = "custom text";
}
I hope that this will help you.

If you have other questions, feel free to contact us.

Regards,
Dobry Zranchev
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
Tags
Scheduler and Reminder
Asked by
Andy
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
Share this question
or