Radscheduler - html problem with appointement box automatic placement

2 posts, 0 answers
  1. antonio
    antonio avatar
    1 posts
    Member since:
    Nov 2010

    Posted 21 Feb 2014 Link to this post


    I have update my application installing the last Radcontrols release (before I was using RadControls for ASP.NET AJAX Q3 2011).
    Since I have updated the system, it is appeared a new problem of displaying appointments in scheduler; in particular, I have found that in some case, when I have more than 5 appointments at the same day and the same hour, some of these become not visibile.
    Investigating inside the generated html, I have found this issue: when the system calculate the position to assign to each box in the scheduler, it divides the available space by the number of element that it has to place, and in html assign a "left" value in "style" element; but I have seen that, when the result of this division has decimal values, it separate that with "," character, instead of "." character.

    For example I find:
    instead of 

    As you can observe, the value of "width" element is using the correct decimal separator, so I deduce that it shouldn't be a problem of system settings but a problem of the telerik library. In attachment you can see that with ",", the box are not visible (first screenshot), while when "." it is modified from me to "." (second screenshot) everything works fine.

    I'm waiting for some solution.


  2. Plamen
    Plamen avatar
    2725 posts

    Posted 24 Feb 2014 Link to this post


    Yes indeed that is a known  bug in RadScheduler that we have fixed for the upcoming Q1 release that is expected this week. Here is a temporary workaround that can be used:
    protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)
           Telerik.Web.UI.AppointmentControl ac = e.Appointment.AppointmentControls[0];
           if (ac.Style["left"] != null)
               ac.Style["left"] = ac.Style["left"].Replace(',', '.');

    Please excuse us for this inconvenience caused bu the issue. 

    Hope this information will be helpful.

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top