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

Radscheduler - html problem with appointement box automatic placement

1 Answer 11 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
antonio
Top achievements
Rank 1
antonio asked on 21 Feb 2014, 02:49 PM
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





1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 24 Feb 2014, 11:35 AM
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.
Tags
Scheduler
Asked by
antonio
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or