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

Orientation Text in RadScheduler(ActiveViewType=Month)

5 Answers 137 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
tran
Top achievements
Rank 1
tran asked on 12 Jan 2011, 03:45 AM
Hi Teletik Team. I have an issue that need your help. I has a Form with RadScheduler1 (ActiveViewType=Month). When I run application, It will show RadScheduler on Month View with each header column is the week-date and each header row show the period of day. However, header row show vertical text, I want header row is horizontal  text. What should I do.

Thanks

Tran Dat

5 Answers, 1 is accepted

Sort by
0
Dobry Zranchev
Telerik team
answered on 14 Jan 2011, 11:10 AM
Hello tran,

Thank you for writing.

You can create a custom theme that changes this text orientation and flip the text properties of the SchedulerHeaderCellElement for the vertical state. Also, you can do it by code, but you should set these properties when you refresh the visual element in the view.
SchedulerMonthViewElement monthViewElement = this.radScheduler1.SchedulerElement.ViewElement as SchedulerMonthViewElement;
for (int i = 0; i < monthViewElement.VerticalHeader.Children.Count; i++)
{
    SchedulerHeaderCellElement cell = monthViewElement.VerticalHeader.Children[i] as SchedulerHeaderCellElement;
    if (cell != null)
    {
        cell.TextOrientation = Orientation.Horizontal;
        cell.FlipText = false;
    }
}

I hope that this will help you. In case that you have other related questions, feel free to write back.

Regards,
Dobry Zranchev
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
0
tran
Top achievements
Rank 1
answered on 14 Jan 2011, 12:00 PM
Thank you for your support. I have already done it. However, the text orientation is horizontal, I can not adjust the width of month column.

Regards,
Tran Dat
0
Dobry Zranchev
Telerik team
answered on 19 Jan 2011, 10:33 AM
Hi tran,

Thank you for writing back.

You can change the width of the vertical header in the SchedulerMonthViewElement.
(this.radScheduler1.SchedulerElement.ViewElement as SchedulerMonthViewElement).VerticalHeader.HeaderWidth = 50;

In case that you have further questions, feel free to write back.

Regards,
Dobry Zranchev
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
0
Chakrapani
Top achievements
Rank 1
answered on 20 Mar 2012, 11:10 AM
Hi,

Please help me and thanks in advance....

I'm new to telerik RadScheduler1 and it's SelectedView="WeekView". 
if i click on Scheduler "Month"  and tried to create a new Appointment then it is saying following exception........

[InvalidOperationException: Invalid slot index: 5]

Telerik.Web.UI.Scheduler.Views.Week.Model.GetSlotByIndex(String index) +212

Telerik.Web.UI.Scheduler.Views.SchedulerModel.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +277 Telerik.Web.UI.RadScheduler.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +4704

Telerik.Web.UI.RadScheduler.RaisePostBackEvent(String eventArgument) +108 Telerik.Web.UI.RadScheduler.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +39

System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +37

System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +286

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4178


Thanks & Best Regards,
Chakrapani M

0
Stefan
Telerik team
answered on 21 Mar 2012, 05:58 PM
Hi,

Thank you for writing.

Please note that this forum concerns RadControls for WInForms, rather then RadControls for ASP.NET AJAX. Please address your question in the appropriate forum: http://www.telerik.com/community/forums/aspnet-ajax/scheduler.aspx.
 
Kind regards,
Stefan
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
Scheduler and Reminder
Asked by
tran
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
tran
Top achievements
Rank 1
Chakrapani
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or