views:

27

answers:

1

Hello, I use Teleric demo sheduler as my base, as it seen in http://www.telerik.com/community/forums/wpf/scheduler/uniqueid-property-how-to-access-it.aspx So i have implemented data loading from SQL to this sheduler. Now i want to implement drag and drop. So, how can i get my appointment values in old place and values in new place on sheduler and what the best technique to do that? I would use these values, to implement update of appointment dates in SQL.

A: 
        private void OnAppointmentEdited(object sender, AppointmentEditedEventArgs e)
        {

            Appointment eAppo = e.Appointment as Appointment;
            SessionAppointment ses = e.Appointment as SessionAppointment;

            if(eAppo != null && ses != null)
            {
                DateTime dateStart = eAppo.Start; //new datestart
                DateTime dateEnd = eAppo.End;//new dateend
                string id = ses.UniqueId;//id

}
}
Vytas999