Wrong start time

5 posts, 1 answers
  1. CabinetZulian
    CabinetZulian avatar
    12 posts
    Member since:
    Apr 2007

    Posted 07 Oct 2013 Link to this post

    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

  2. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 09 Oct 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. CabinetZulian
    CabinetZulian avatar
    12 posts
    Member since:
    Apr 2007

    Posted 11 Oct 2013 Link to this post

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

  5. Answer
    Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 14 Oct 2013 Link to this post

    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.
  6. CabinetZulian
    CabinetZulian avatar
    12 posts
    Member since:
    Apr 2007

    Posted 16 Oct 2013 Link to this post

    It works fine with the new version !! Thanks !!

    Jérémy
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017