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

Scheduler show only current events

4 Answers 75 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Zura Chikhladze
Top achievements
Rank 1
Zura Chikhladze asked on 21 Sep 2011, 07:25 AM
Hi,

here is the case. could you please tell me
how is it possible for radscheduler display only current appointments and consequently shrink in size, namely height?

for instance, i have a scheduler that has the following:
13.00 - appointment doctor
14.30 - presentation sales
17.00 - brainstorming

now what i would like the rad scheduler to display is the appointments mentioned above and hide the rest time frame and shrink in size.

thank you in advance. z.

4 Answers, 1 is accepted

Sort by
0
Dan Lehmann
Top achievements
Rank 1
answered on 21 Sep 2011, 10:40 PM
0
Zura Chikhladze
Top achievements
Rank 1
answered on 22 Sep 2011, 01:25 PM
No, it won't unfortunately.
0
Dan Lehmann
Top achievements
Rank 1
answered on 22 Sep 2011, 10:01 PM
You can always set the height in the codebehind. Here is some untested code to give you an idea:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
    If Not IsPostBack Then
        Dim hourheight As Integer = 50 'calculate the values i hardcoded here based on your needs.
        Dim startHour As Int16 = 12  '1 hour before your 13.00 appt
        Dim endHour As Int16 = 18   '1 hour after
        RadScheduler1.Height = (endHour - startHour) * hourheight
        RadScheduler1.DayStartTime = New TimeSpan(startHour, 0, 0)
        RadScheduler1.DayEndTime = New TimeSpan(endHour, 0, 0)
        RadScheduler1.WorkDayStartTime = New TimeSpan(startHour, 0, 0)
        RadScheduler1.WorkDayEndTime = New TimeSpan(endHour, 0, 0)
    End If
End Sub

I am guessing it would be better to not limit the Start and End times like I have, but I don't know how you would scroll to the correct hour.

Dan
0
Zura Chikhladze
Top achievements
Rank 1
answered on 27 Sep 2011, 09:27 AM
thank you dan. well, it working -). one slight thing is that the hours (start/end) have to be changed manually. is it possible to put the the parameters (hourheight, startHour, endHour ) in the web.config? (so that i can change it in the web.config). thanx.
Tags
Scheduler
Asked by
Zura Chikhladze
Top achievements
Rank 1
Answers by
Dan Lehmann
Top achievements
Rank 1
Zura Chikhladze
Top achievements
Rank 1
Share this question
or