Orientation Text in RadScheduler(ActiveViewType=Month)

6 posts, 0 answers
  1. tran
    tran avatar
    8 posts
    Member since:
    Oct 2010

    Posted 11 Jan 2011 Link to this post

    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
  2. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 14 Jan 2011 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. tran
    tran avatar
    8 posts
    Member since:
    Oct 2010

    Posted 14 Jan 2011 Link to this post

    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
  5. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 19 Jan 2011 Link to this post

    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.
  6. Chakrapani
    Chakrapani avatar
    7 posts
    Member since:
    Aug 2011

    Posted 20 Mar 2012 Link to this post

    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

  7. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 21 Mar 2012 Link to this post

    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 >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready