Scheduler show only current events

5 posts, 0 answers
  1. Zura Chikhladze
    Zura Chikhladze avatar
    32 posts
    Member since:
    Jul 2009

    Posted 21 Sep 2011 Link to this post

    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.
  2. Dan Lehmann
    Dan Lehmann avatar
    103 posts
    Member since:
    May 2011
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Zura Chikhladze
    Zura Chikhladze avatar
    32 posts
    Member since:
    Jul 2009

    Posted 22 Sep 2011 Link to this post

    No, it won't unfortunately.
  5. Dan Lehmann
    Dan Lehmann avatar
    103 posts
    Member since:
    May 2011

    Posted 22 Sep 2011 Link to this post

    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
  6. Zura Chikhladze
    Zura Chikhladze avatar
    32 posts
    Member since:
    Jul 2009

    Posted 27 Sep 2011 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017