Appointments' left-attribute using wrong decimal separator

3 posts, 0 answers
  1. Oscar
    Oscar avatar
    2 posts
    Member since:
    Nov 2013

    Posted 29 Jan 2014 Link to this post


    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>

    Can this be fixed in some way?
  2. Oscar
    Oscar avatar
    2 posts
    Member since:
    Nov 2013

    Posted 29 Jan 2014 in reply to Oscar Link to this post

    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
  3. Plamen
    Plamen avatar
    3056 posts

    Posted 31 Jan 2014 Link to this post

    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.

    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.
Back to Top