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

Ruler Scale Problems

12 Answers 203 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
mrdcpwns
Top achievements
Rank 1
mrdcpwns asked on 06 Jan 2010, 05:15 PM
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

12 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 12 Jan 2010, 07:55 AM
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.
0
Kian
Top achievements
Rank 1
answered on 28 Sep 2010, 08:31 AM
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
0
Dobry Zranchev
Telerik team
answered on 30 Sep 2010, 04:48 PM
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
0
Jason
Top achievements
Rank 1
answered on 05 Oct 2017, 08:15 PM

I am having trouble with the RulerStartScale and RulerEndScale.  I can't seem to get my Ruler to go past 5:00pm trying many different combinations of RulerStartScale, RulerEndScale, and the WorkTime Timespan.

Is there still a framework issue with these Scheduler properties?

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 06 Oct 2017, 09:53 AM
Hello, Jason,  

Thank you for writing.  

Following the provided information, I was unable to reproduce the issue you are facing. Please refer to the attached gif file illustrating the behavior on my end with the latest version. Could you please specify the exact steps how to reproduce the problem? Alternatively, you can submit a support ticket where you can provide a sample project demonstrating the exact problem you are facing. Thus, we would be able to make an adequate analysis of the problem and assist you further. Thank you in advance.

I am looking forward to your reply.

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Jason
Top achievements
Rank 1
answered on 06 Oct 2017, 06:41 PM

Thanks for getting back to me, Dess.  Please find attached a code snippet and two screenshots (Top and Bottom scrolled) of my scheduler.  I am trying to set my scheduler to Begin at 6am and End at 9pm.  When I set the "RulerStartScale" (6) and "RulerEndScale" (21) it appears to offset everything by a couple of hours and the result is to Begin at 5am (Top) and End at 4pm (Bottom).  Does this have anything to do with TimeZones.  I've also tried to adjust "WorkTime" a variety of ways to no logical conclusion.  Also as I mentioned in my earlier post, no matter what I do to any of these properties (or ignore them) my Scheduler never shows a time past 5PM.

Thanks for any ideas.

0
Hristo
Telerik team
answered on 09 Oct 2017, 03:43 PM
Hi Jason,

Thank you for writing back.

We had an issue with a similar result as seen in your screenshots. It was resolved with the R2 SP1 2017 release. 

In case you keep having problems with your project please open up a support ticket and send it over. That would be the fastest way for us to investigate the issue.

I hope this helps. Please let me know if you have other questions.

Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Ivan
Top achievements
Rank 1
answered on 10 Jul 2020, 12:28 PM

Hi, I have a problem with the Appointment EndTime scale.
All StartTime are correctly, but the EndTime are 15 minutes more, if the Endtime not full hour.

Private Sub Form3_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        dtVGanttAll = daVGanttAll.GetData
        SchedulerBindingDataSource1.ResourceProvider.DataSource = dtVGanttAll
        SchedulerBindingDataSource1.EventProvider.DataSource = dtVGanttAll
        RadScheduler1.DataSource = SchedulerBindingDataSource1
        RadScheduler1.GetDayView.DayCount = 2
        Dim dayView As SchedulerDayView = Me.RadScheduler1.GetDayView()
        If Me.RadScheduler1.ActiveViewType = SchedulerViewType.Day Then
            Dim activeDayView As SchedulerDayView = CType(Me.RadScheduler1.ActiveView, SchedulerDayView)
        End If
        dayView.DayCount = 2
        dayView.WorkTime = TimeInterval.Day
        dayView.WorkWeekStart = DayOfWeek.Monday
        dayView.WorkWeekEnd = DayOfWeek.Sunday

        dayView.RangeFactor = ScaleRange.QuarterHour
        dayView.RulerStartScale = 6
        dayView.RulerStartScaleMinutes = 0
        dayView.RulerEndScale = 22
        dayView.RulerEndScaleMinutes = 0
        dayView.RulerFormatStrings = New RulerFormatStrings("%H", "mm", "", "")
        dayView.RulerWidth = 40
        dayView.RulerScaleSize = 20
        Dim dayViewElement As SchedulerDayViewElement = DirectCast(Me.RadScheduler1.ViewElement, SchedulerDayViewElement)
        dayViewElement.DataAreaElement.Ruler.TimePointerStyle = RulerCurrentTimePointer.Arrow
        dayViewElement.DataAreaElement.Ruler.CurrentTimePointerWidth = 3
        dayViewElement.DataAreaElement.Ruler.CurrentTimePointerColor = Color.Green
End Sub

Can you help me please?

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 13 Jul 2020, 09:36 AM

Hello, Ivan,

Indeed, the provided screenshot shows incorrectly aligned appointment into the view.

Following the code snippet, I have prepared a sample project to test the behavior on my end with the latest version. It seems to work as expected: 



I have attached my sample project. Am I missing something? Is the RadScheduler's setup different on your end? Could you please specify the exact steps how to reproduce the problem? Once we replicate the issue locally, we would be able to make an adequate analysis of the precise case and provide further assistance. Thank you in advance. 

I am looking forward to your reply.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

0
Ivan
Top achievements
Rank 1
answered on 13 Jul 2020, 10:36 AM

Hi Dess
thanks a lot for your answer.
All Start and EndTimes are from Database fields!

With this sentence I fill the SchedulerBindingDataSource1

        dtVGanttAll = daVGanttAll.GetProd
        SchedulerBindingDataSource1.EventProvider.DataSource = dtVGanttAll '(DataBase Table)
        RadScheduler1.DataSource = SchedulerBindingDataSource1

It works very well too, only the end times (if minutes are not 00) are not in the correct timeline.

In your example you have entry a manually appointment string, I have a DataBase table with a lot of rows.

Best regrard

Ivan

 

 

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 13 Jul 2020, 12:33 PM
Hello, Ivan,

If your appointment exceeds with one minute or even with 1 second after the time slot that a certain cell occupies (e.g. 10:30-10:45), this means that the appointment will be spread over the next cell as well since it occupies a very small part of the time. Hence, the obtained behavior is expected.

The possible solution that I would suggest is to enable the RadScheduler.EnableExactTimeRendering property. Thus, the appointment's start and end time should be rendered exactly.: https://docs.telerik.com/devtools/winforms/controls/scheduler/views/exact-time-rendering 

I hope this information helps. If you need any further assistance please don't hesitate to contact me.  

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

0
Ivan
Top achievements
Rank 1
answered on 13 Jul 2020, 01:22 PM

Dear Dess
thanks a lot for your help, it works perfectly now.

Best regards and have a nice day  ! ! !

 

Tags
Scheduler and Reminder
Asked by
mrdcpwns
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Kian
Top achievements
Rank 1
Dobry Zranchev
Telerik team
Jason
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Hristo
Telerik team
Ivan
Top achievements
Rank 1
Share this question
or