我有ff代码:
// note: entries is a list binded to a query from the database
// wherein i'm passing some parameters to satisfy
// the conditions from the query
foreach (var entry in entries)
{
Appointment appointment = new Appointment();
appointment.Start = entry.StartDateTime;
appointment.End = entry.EndDateTime;
appointment.Summary = entry.Summary;
this.radScheduler.Appointments.Add(appointment);
}
有没有办法在radScheduler
不使用foreach
语句的情况下直接绑定条目?
我也尝试过使用radScheduler.datasource
,但它不起作用。