我使用Telerik演示调度器作为我的基础,就像它在http://www.telerik.com/community/forums/wpf/scheduler/uniqueid-property-how-to-access-it.aspx中看到的那样,所以我已经实现了从SQL到这个调度器的数据加载。现在我想实现拖放。那么,如何在scheduler中获取旧位置中的约会值和新位置中的值?最好的方法是什么?我将使用这些值在SQL中实现约会日期的更新。
发布于 2009-12-18 23:37:37
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
}
}https://stackoverflow.com/questions/1926880
复制相似问题