Appointment Display Cutoff

6 posts, 0 answers
  1. Ben
    Ben avatar
    55 posts
    Member since:
    Jan 2006

    Posted 05 Mar 2014 Link to this post

    I am begging for some kind soul to help me here.

    I have tried everything I can think of, and I haven't been able to fix this problem.

    For some reason, some appointments appear perfectly fine on my Scheduler, and others get cutoff. The code is exactly the same for both appointment creations.

    Note: I am creating appointment manually and using the InsertAppointment() method to add them to the Scheduler.

    I thought that maybe it was affecting only appointments scheduled in the future from the current date...but when I moved appointments around, I found (as you will see in the attached image) that I was able to see appointment perfectly from the 5th (current date) to the 9th. But starting the 10th, it gets cutoff. It's so BIZARRE...

    PLEASE PLEASE Can anyone help me fix this?
  2. Ben
    Ben avatar
    55 posts
    Member since:
    Jan 2006

    Posted 05 Mar 2014 in reply to Ben Link to this post

    Grrr...got an error posting and it ended up not posting my image.  Here is the image...hopefully it will post this time.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 06 Mar 2014 Link to this post

    Hi Ben,

    Would you please provide more information about your setup. For instance what version of the controls you are using, what binding does the Scheduler use - is it Server Side or WebService, do you have any appointments with zero minutes duration, do you have cusom styles on the page? It would also be helpful if we had some sample code or a live Url that we can test locally in order to troubleshoot the issue.

    Regards,
    Bozhidar
    Telerik

    DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

  5. Ben
    Ben avatar
    55 posts
    Member since:
    Jan 2006

    Posted 06 Mar 2014 in reply to Bozhidar Link to this post

    Hello Bozhidar,

    I am using v2012.2.724.35

    I am using completely server-side code, but I am creating the appointments myself, using the InsertAppointment() method for each record I have in my database table. The appointments are all 1 hour or longer, no custom styles (other than minor CSS tweaks to fix some styling bugs.

    I am working on a local development site at the moment, so I do not have a live URL that I can show you. 

    The code that creates the appointment is pretty basic:
     
    '***************************************
    ' Create Regular Appointment
    '***************************************
    objAppointment = New Telerik.Web.UI.Appointment
    With objAppointment
        .ID = Me.GetPropertyValue(p_objDataItem, Me._ctrlRADScheduler.DataKeyField)
        .Subject = Me.GetPropertyValue(p_objDataItem, Me._ctrlRADScheduler.DataSubjectField)
        .Description = Me.GetPropertyValue(p_objDataItem, Me._ctrlRADScheduler.DataDescriptionField)
        .Start = Me.GetPropertyValue(p_objDataItem, Me._ctrlRADScheduler.DataStartField)
        .End = Me.GetPropertyValue(p_objDataItem, Me._ctrlRADScheduler.DataEndField)
        .ContextMenuID = "cmnu" & ContextMenuType.Appointment.ToString()
    End With
     
    '***************************************
    ' If Appointment Is Within Displayed Calendar Range - Add Appointment
    '***************************************
    If ((objAppointment.Start >= p_dtRangeStart) AndAlso (objAppointment.End <= p_dtRangeStop)) Then
        Me._ctrlRADScheduler.InsertAppointment(objAppointment)
    End If


    After posting the above, I did find something strange. The DIV control that contained the appointment text, had an inline style attribute for the width, setting it to 0px. I have no clue why because I never set any width's.

    I don't know if this was the proper solution, but I found a way to "patch" the problem. In the AppointmentCreated() event of the RADScheduler I added the following code:
    '***************************************
    ' Fix RADScheduler Appointment Width Bug
    '***************************************
    If (e.Appointment.AppointmentControls.Count = 1) Then
        If (e.Appointment.AppointmentControls(0).ControlStyle.Width.Value = 0) Then
            e.Appointment.AppointmentControls(0).ControlStyle.Width = New Unit(100, UnitType.Percentage)
        End If
    End If


    I still have no clue why it was set to 0px in the first place.

  6. Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 07 Mar 2014 Link to this post

    Hello Ben,

    The version you're using is an old one and a lot of bugs in the Scheduler have been fixed since then. Could you try out the latest version of the controls to see if the issue has been fixed?

    Other than that without a reliable way to replicate the erroneous behavior on our end, we won't be able to troubleshoot it in order to find what's causing it.

    Regards,
    Bozhidar
    Telerik

    DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

  7. Ben
    Ben avatar
    55 posts
    Member since:
    Jan 2006

    Posted 10 Mar 2014 in reply to Bozhidar Link to this post

    Bozhidar,

    Thank you for the reply. Unfortunately I do not know how to "upgrade" to the latest version because I am using the Telerik controls supplied within the DNN Framework. I am not even sure there is a way to upgrade the Telerik controls used in the DNN Framework...would be great if there was a way to upgrade them.

    Unless I find a way to upgrade, I suppose I will just have to stick with the "patch" that I coded above to fix my problem.

    Thanks again for your assistance.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017