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

Appointments' left-attribute using wrong decimal separator

2 Answers 36 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Oscar
Top achievements
Rank 1
Oscar asked on 29 Jan 2014, 12:56 PM
Hi,

I am using RadScheduler and have set its CultureInfo property to "sv-SE" (swedish) and I have noticed that the "left"-attribute that is rendered in the outputted html uses "," as a decimal separator which is not valid CSS. However, the "width"-property uses "." and works correctly.


The effect is that appoinments that gets an uneven left-value are stacked on top of each other.

The telerik version I am using is 2013 Q3 SP1 (2013.3.1114.40)

An example of the output below, the illegal attribute value is marked in italic:

<div id="ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder_SlotsScheduler_43_0" title="10:20 - 10:40
XXX YYY" class="rsApt resource n10 appointmentPassed rsAptSelected" style="height:29px;width:11.25%;left:78,75%;top:8px;">
  <div class="rsAptOut">
    <div class="rsAptMid">
      <div class="rsAptIn">
        <div class="rsAptContent">
          <a class="appointmentIcon"></a><span> </span>XXX YYY
       <a class="rsAptDelete" href="#" style="visibility: hidden;">delete</a>                     </div>
                                     </div>
                                                </div>
                                            

Can this be fixed in some way?

2 Answers, 1 is accepted

Sort by
0
Oscar
Top achievements
Rank 1
answered on 29 Jan 2014, 01:16 PM
Some additional information comes here.

The problem is solved when changing the Culture on the thread, i.e. not the the UICulture. 
However, I would like to use the "sv-SE" culture on my thread so my problem remains.

// Oscar
0
Plamen
Telerik team
answered on 31 Jan 2014, 01:13 PM
Hello Oscar,

Thank you for contacting Telerik support.

Yes indeed this is a known bug that was recently reported to us. It is with high priority and we will do our best to fix it as soon as possible. You can vote for it and fix it here.

Please excuse us for this inconvenience caused. A temporary workaround for this issue is to use the code below:
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(',', '.');
   }

Hope this will explain the issue. If you have further questions please don't hesitate to contact us again.

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
Oscar
Top achievements
Rank 1
Answers by
Oscar
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or