Telerik RadScheduler 数据源
我有 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 ,但它不起作用。
I have the ff code:
// 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);
}
Is there a way to bind the entries directly to radScheduler
without using foreach
statement?
I've also tried using radScheduler.datasource
but it doesn't work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请检查以下代码:
.aspx
.aspx.cs
.cs
http: //www.telerik.com/help/aspnet-ajax/scheduler-database-struct.html
它在我这边工作。
Please check below code :
.aspx
.aspx.cs
.cs
http://www.telerik.com/help/aspnet-ajax/scheduler-database-structure.html
It worked from my side.