XtraSchedule 显示自定义约会标题
我想更改每个约会的标题,而不是显示应用的时间
我尝试了 InitAppointmentDisplayText
事件,但它只更改了应用程序的工具提示
private void schedulerControl1_InitAppointmentDisplayText(object sender, AppointmentDisplayTextEventArgs e)
{
e.Text = string.Format("Schedule: {0}, Time: {1}", e.Appointment.Description, e.Appointment.Start.ToShortTimeString());
e.Description = string.Format("Schedule: {0}, Time: {1}", e.Appointment.Description, e.Appointment.Start.ToShortTimeString());
}
I want to change the caption of every appointment i have instead of displaying the time of the app
I tried InitAppointmentDisplayText
event but it only changes the toolTip of the app
private void schedulerControl1_InitAppointmentDisplayText(object sender, AppointmentDisplayTextEventArgs e)
{
e.Text = string.Format("Schedule: {0}, Time: {1}", e.Appointment.Description, e.Appointment.Start.ToShortTimeString());
e.Description = string.Format("Schedule: {0}, Time: {1}", e.Appointment.Description, e.Appointment.Start.ToShortTimeString());
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该处理 InitAppointmentDisplayText 事件,并设置 Scheduler.Views.MonthView 属性,如下所示:
更新
请参阅我们文档中的以下主题,了解如何实现自定义编辑表单:
如何:使用自定义字段创建自定义 EditAppointment 表单
如何:创建自定义约会重复表单
You should handle the InitAppointmentDisplayText event and also set the Scheduler.Views.MonthView properties as shown below:
UPDATE
Please refer to the following topics in our documentation to learn how to implement custom edit forms:
How to: Create a Custom EditAppointment Form with Custom Fields
How to: Create a Custom Appointment Recurrence Form