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

    Hi,

    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:
    style="height:46px;width:6.923077%;left:6,923077%;" 
    instead of 
    style="height:46px;width:6.923077%;left:6.923077%;" 

    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.

    Regards,
    Marcello





  2. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 24 Feb 2014 Link to this post

    Hello,

    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.

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