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

How to make time slots smaller

3 Answers 312 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Gabriel
Top achievements
Rank 1
Gabriel asked on 11 Nov 2010, 06:00 PM
Hello,

ScheduleView is great. Congratulations.
I have one small question. Is it possible to make the time slots smaller (to stretch to the height of the screen or a fixed width). Now, even if I have a lot of space on screen the scheduler has a vertical scrollbar. I prefer to see all my appointments on screen without scrolling vertically, even if the time slots are smaller. Later if I want to see them bigger, I'll use the zoom feature.

I saw that setting both  MinTimeRulerExtent and MaxTimeRulerExtent on dayviewdefinition makes the time slots smaller, but I don't understand their meaning. Where can I find an example of using these extents or there is another way to do it?

Thanks

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 16 Nov 2010, 01:52 PM
Hello Gabriel,

Thank you for contacting us.

Straight to the questions:

  • MinTimeRulerExtent - gets or sets the minimum size of the time ruler in pixels.
  • MaxTimeRulerExtent - gets or sets the maximum size of the time ruler in pixels.

I would suggest you to set MinTimeRulerExtent to a value, smaller than your monitor width ( in pixels ) and the MaxTimeRulerExtent to Infinity. This will stretch the RadScheduleView

I hope this helps. Please do not hesitate to contact us if you require any further information.


Sincerely yours,
George
the Telerik team
See What's New in RadControls for WPF in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
0
Swapnil
Top achievements
Rank 1
answered on 11 Apr 2018, 10:12 AM

Hi,

We have requirement to adjust radschedular  on screen for different resolution (1920 X 1080, 1680 X 1050 & 1366 X 768 )  for different days in week view with no scroll on it.

1. View - Monday - Saturday 8PM - 11PM

2. View - Monday - Sunday 8PM - 11PM

3. View - Monday - Sunday 7PM - 11PM

 

Consider 1920 X 1080 resolution with MinTimeRulerExtent  set as 1850

We are setting MinTimeRulerExtent property of definition to adjust control . but when we switch from View 2 to view 1, view 1 got distorted it automatically add vertical scroll bar to it.

1920 X 1080 (PresenterWeekView.MinTimeRulerExtent = 1850)

1680 X 1050 (PresenterWeekView.MinTimeRulerExtent = 1615)

1366 X 768 (PresenterWeekView.MinTimeRulerExtent = 1250)

 

 

 

For testing purpose we added a text box on screen and on textchange event of that text box we are setting MinTimeRulerExtent  to 1845. then it  adjust to screen resolution with no scroll. but no workingt when we switch between different view and setting MinTimeRulerExtent value while switching between view.

 

When we switch between View 2 and 3 it work correctly. But when we use sequence  as View View 2,View 3 and View 1 it breaks in View 1 which has less days(6 Days).

 

This is working properly with previous version. We are facing this issue after the version update.

 

0
Vladimir Stoyanov
Telerik team
answered on 16 Apr 2018, 09:13 AM
Hello Swapnil,

Thank you for the attached pictures.

I tried to reproduce the described scenario but I am afraid I was not able to. This is why I am attaching the sample project that I used for testing. May I ask you to modify it in order to reproduce the described behavior and open a new support ticket with the project attached? This way I will be able to investigate further. Additionally, may I ask you to specify which version is the described behavior occurring in?

Thank you in advance for any help you can provide.

Regards,
Vladimir Stoyanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
ScheduleView
Asked by
Gabriel
Top achievements
Rank 1
Answers by
George
Telerik team
Swapnil
Top achievements
Rank 1
Vladimir Stoyanov
Telerik team
Share this question
or