Ruler Scale Problems

4 posts, 0 answers
  1. mrdcpwns
    mrdcpwns avatar
    16 posts
    Member since:
    Dec 2009

    Posted 06 Jan 2010 Link to this post

    I've changed some values on the Ruler element:

    Startscale : 7
    Endscale : 19
    RangeFactor : QuarterlyHour


    Problems encountered (tested over DayView):
    1. Appointment area below the 12th has no lines

    2. When right clicked over the appointment area and selected Next or Previous Day, the scale and range values return to their default values. Where can I find the property to set the values found for those two items in the context menu?

    Also, if I may ask another question:
    How can I change the text and remove items from the context menu? (e.g. New Appointment changed to New Meeting)


    Sample Project Solution
    http://www.megaupload.com/?d=D3SP8XR6
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 12 Jan 2010 Link to this post

    Hello mrdcpwns,

    1. I confirm that there are issues with the RulerStartScale and RulerEndScale settings. We will do our best to fix them for the upcoming Q1 release. However, if your scenario concerns highlighting the WorkTime area, you can use the ScrollToWorkHours method.

    SchedulerDayViewElement dView = (this.radScheduler.SchedulerElement.ViewElement as SchedulerDayViewElement);
                dView.DataAreaElement.Table.ScrollToWorkHours();

    2. If you need to change the text of some of the MenuItems or the entire ContextMenu, then you can do the following:

    this.radScheduler.ContextMenuShowing += new EventHandler<SchedulerContextMenuShowingEventArgs>(radScheduler_ContextMenuShowing);

    void radScheduler_ContextMenuShowing(object sender, SchedulerContextMenuShowingEventArgs e)
            {
                e.ContextMenu.Items[0].Text = "New Meeting";
            }

    You can change also the default ContextMenu instance in the event handler.

    If you need more information, please contact us again.

    Kind regards,
    Boyko Markov
    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Kian
    Kian avatar
    15 posts
    Member since:
    Sep 2010

    Posted 28 Sep 2010 Link to this post

    Dear Admin,

    I have a problem with RulerStartScale and RulerEndScale. I wrote this code in my Form Load to change the WorkTime:

     RadScheduler1.GroupType = GroupType.Resource
     RadScheduler1.ActiveView.ResourcesPerView = 5

     RadScheduler1.GetDayView.WorkTime = New TimeInterval(TimeSpan.FromHours(7), TimeSpan.FromHours(24))
     RadScheduler1.GetDayView.RulerStartScale = 7
     RadScheduler1.GetDayView.RulerEndScale = 24
     RadScheduler1.GetDayView.RulerTimeFormat = RulerTimeFormat.hours24

    and I have a RadScheduler (ActiveViewType=Day - DayCount = 1) and a calendar in my form.
    and I have an event handler for my calendar:

     Private Sub RadCalendar1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs)
            RadScheduler1.GetDayView.StartDate = RadCalendar1.SelectedDate
     End Sub

    When RadScheduler1.GetDayView.StartDate is changed I lost my RulerStartScale  and RulerEndScale and WorkTime.
    How can I do to solve this issue?

    Thank you in advance.
    Regards.
    Kian
  5. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 30 Sep 2010 Link to this post

    Hello Kian,

    Thank you for writing.
     
    I am not able to reproduce the issue with Q2 2010 SP2. Please open a new support ticket and create a sample project that demonstrates the issue. This will help us to investigate the case and provide you with further assistance.

    If you have other questions, feel free to write back.

    Greetings,
    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
Back to Top