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

Wrong start time

4 Answers 82 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
CabinetZulian
Top achievements
Rank 1
CabinetZulian asked on 07 Oct 2013, 08:10 AM
Hello,

 

I have a problem with the RadScheduler control. When I move an appointment, sometime, the new start time is false…

 

I test with args.get_newStartTime() (client side) and e.ModifiedAppointment.Start (server side) and the twice send me the same value.


<telerik:RadScriptBlock runat="server">
                <script type="text/javascript">
 
                    function onAppointmentMoveEnd(sender, args)
                    {
                        alert(args.get_newStartTime());
                    }
                     
                </script>
            </telerik:RadScriptBlock>
 
            <div>
                <telerik:RadScheduler OnClientAppointmentMoveEnd="onAppointmentMoveEnd" runat="server"
                    ID="schPlanning" DataKeyField="Libelle" DataSubjectField="SujetEvenement"
                    DataDescriptionField="Libelle" DataStartField="Debut" DataEndField="Fin" Height="1000px">
                </telerik:RadScheduler>
            </div>

public partial class Calendrier : Page
{
    private void schPlanning_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
    {
        DateTime newStartTime = e.ModifiedAppointment.Start;
 
        // Alert(newStartTime)
    }
     
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
         
        schPlanning.AppointmentUpdate += new AppointmentUpdateEventHandler(schPlanning_AppointmentUpdate);
    }
 
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            List<Evenement> evenements = new List<Evenement>();
 
            evenements.Add(new Evenement("Sujet", "Libelle", DateTime.Now.Date.AddHours(15), DateTime.Now.Date.AddHours(17)));
 
            schPlanning.DataSource = evenements;
        }
    }
}
 
public class Evenement
{
    public string SujetEvenement { get; set; }
 
    public string Libelle { get; set; }
 
    public DateTime Debut { get; set; }
 
    public DateTime Fin { get; set; }
 
    public Evenement(string sujetEvenement, string libelle, DateTime debut, DateTime fin)
    {
        SujetEvenement = sujetEvenement;
        Libelle = libelle;
        Debut = debut;
        Fin = fin;
    }
}

I join a screenshot when I have the error.

 

Information:

- Telerik 2013.2.717.35

- Internet Explorer 9.0.8112.16421

 

Sorry for my approximate English, I’m French.

 

Jérémy

4 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 09 Oct 2013, 12:24 PM
Hi,

 
Thank you for elaborating the issue. It was a bug in 2013.2 717 version of RadScheduler when you start dragging the appointment exactly from the point over the timeslot border. It is already fixed in the latest versions of the controls. Please excuse us for the inconvenience caused by the issue.

Hope this information will explain the issue.

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 RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
CabinetZulian
Top achievements
Rank 1
answered on 11 Oct 2013, 02:06 PM

I downloaded the latest version (beta 2013.3.926.35), and the problem it’s the same…

0
Accepted
Plamen
Telerik team
answered on 14 Oct 2013, 10:28 AM
Hi,

 
Yes indeed. It seems that the fix was included just after the beta and it is going to be available in the official release.

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 RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
CabinetZulian
Top achievements
Rank 1
answered on 16 Oct 2013, 03:12 PM
It works fine with the new version !! Thanks !!

Jérémy
Tags
Scheduler
Asked by
CabinetZulian
Top achievements
Rank 1
Answers by
Plamen
Telerik team
CabinetZulian
Top achievements
Rank 1
Share this question
or